/*
 * MTG 2019 Theme - Site Styles
 * Updated for Morpheus Trading Academy rebrand
 * Hybrid approach: Dark header/footer, light content area
 */

/* ============================================
   TYPOGRAPHY - Roboto Font Family
   ============================================ */
@font-face {
    font-family: 'Lato-Regular';
    src: url('../ttf/lato-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Bold';
    src: url('../ttf/lato-bold.ttf') format('truetype');
}

body {
    font-family: 'Roboto', 'Lato-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* ============================================
   NAVIGATION - Styles moved to header.php
   Keeping minimal overrides here
   ============================================ */
.nav-link {
    color: #ffffff !important;
    /* Removed: text-transform: uppercase - now using title case to match legacy */
    font-size: 0.9em;
}

.login-link {
    color: rgba(255, 255, 255, 0.5);
}

    .login-link:hover {
        color: rgba(255, 255, 255, 0.75);
    }

nav.mb-4 {
    margin-bottom: 0px !important;
}

/* ============================================
   CONTENT AREA - Light Background (Hybrid Approach)
   ============================================ */
#content.site-content {
    background-color: #ffffff;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

div#primary {
    padding-top: 1.5em;
    background-color: #ffffff;
}

div#secondary,
div#sidebar-1 {
    padding-top: 3em;
    background-color: #ffffff;
}

/* ============================================
   BLOG CONTENT STYLES
   ============================================ */
div.blog-content h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    margin: 0px;
    color: #333333;
}

div.blog-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0px;
}

    div.blog-content h1 a,
    div.blog-content h2 a {
        color: #333333;
        transition: color 0.3s ease;
    }

        div.blog-content h1 a:hover,
        div.blog-content h2 a:hover {
            color: #E67E22;
        }

/* ============================================
   ARTICLE / POST STYLES
   ============================================ */
article.post {
    border-bottom: solid 1px #e9ecef;
    overflow: hidden;
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
}

article.flexed {
    display: flex;
}

@media (min-width: 768px) {
    article.post div.left {
        float: left;
        margin-right: 1em;
    }
}

@media (max-width: 767px) {
    article.post div.left {
        display: none;
    }
}

header.entry-header {
    padding-bottom: 0.5em;
}

/* Category Tags */
article.post div.entry-category a {
    display: inline-block;
    background-color: #E67E22;
    color: #ffffff;
    border-radius: 0.5em;
    padding: 0.2em 0.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 0.7em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

    article.post div.entry-category a:hover {
        background-color: #c76d1a;
    }

article.post div.entry-meta {
    font-size: 0.8em;
    color: #6c757d;
}

article.post div.post-button {
    margin-bottom: 1em;
}

    article.post div.post-button a {
        font-size: 0.9em;
        background-color: #E67E22 !important;
        border-color: #E67E22 !important;
        transition: all 0.3s ease;
    }

        article.post div.post-button a:hover {
            background-color: #c76d1a !important;
            border-color: #c76d1a !important;
        }

article.flexed img.attachment-thumbnail {
    border-radius: 0.5em;
    margin-bottom: 1em;
}

/* ============================================
   PAGINATION
   ============================================ */
nav.pagination div.nav-links {
    margin: 0px auto;
    padding-top: 1em;
    padding-bottom: 1em;
}

    nav.pagination div.nav-links a,
    nav.pagination div.nav-links span {
        display: inline-block;
        border: solid 1px #e9ecef;
        padding: 0.5em;
        margin: 0.5em;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

        nav.pagination div.nav-links a:hover {
            background-color: #E67E22;
            border-color: #E67E22;
            color: #ffffff;
        }

        nav.pagination div.nav-links span.current {
            background-color: #370348;
            border-color: #370348;
            color: #ffffff;
        }

/* ============================================
   PAGE HEADERS
   ============================================ */
header.page-header h1.page-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #333333;
    border-bottom: solid 1px #e9ecef;
    padding-bottom: 0.5em;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
div#secondary div.tweets {
    background-color: #f8f9fa;
    padding: 1.5em;
    border-radius: 1em;
    margin-bottom: 1em;
    border: 1px solid #e9ecef;
}

    div#secondary div.tweets div.tweets-header img {
        float: left;
        height: 4em;
        width: 4em;
        margin-right: 0.5em;
    }

    div#secondary div.tweets div.tweets-header div.tweets-header-inner p {
        margin: 0;
        padding: 0;
    }

        div#secondary div.tweets div.tweets-header div.tweets-header-inner p.tweets-title {
            color: #333333;
            font-size: 1.3em;
            font-weight: 600;
        }

/* Widget Styling */
.widget {
    margin-bottom: 2em;
}

    .widget-title,
    .widget h2 {
        font-family: 'Roboto', sans-serif;
        font-size: 1.2em;
        font-weight: 700;
        color: #333333;
        border-bottom: 2px solid #E67E22;
        padding-bottom: 0.5em;
        margin-bottom: 1em;
    }

/* ============================================
   LINKS - Brand Colors
   ============================================ */
a {
    color: #E67E22;
    transition: color 0.3s ease;
}

    a:hover {
        color: #c76d1a;
        text-decoration: none;
    }

    a:visited {
        color: #370348;
    }

/* ============================================
   COMMENTS
   ============================================ */
h3.comments-form-title,
h2.comments-title {
    font-family: 'Roboto', sans-serif;
    padding-top: 0.5em;
    font-size: 1.2em;
    font-weight: 700;
}

span.required {
    color: #E67E22;
}

article.comment-body footer {
    background-color: unset !important;
    font-size: 1em;
    color: #333333;
    padding: 0 !important;
}

ol.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-indent: 0;
}

    ol.comment-list ol.children {
        list-style: none;
        margin: 0 0 0 2em;
        padding: 0;
        text-indent: 0;
    }

    ol.comment-list li.comment {
        border-bottom: 1px dotted #e9ecef;
        padding: 1em;
    }

        ol.comment-list li.comment div.vcard {
            font: normal 16px 'Roboto', sans-serif;
        }

            ol.comment-list li.comment div.vcard cite.fn {
                font-style: normal;
            }

            ol.comment-list li.comment div.vcard img.avatar {
                border: 3px solid #e9ecef;
                float: right;
                margin: 0 0 1em 1em;
                border-radius: 50%;
            }

        ol.comment-list li.comment div.comment-meta {
            font-size: 9px;
        }

            ol.comment-list li.comment div.comment-meta a {
                color: #6c757d;
            }

        ol.comment-list li.comment p {
            font-size: 1em;
            margin: 0 0 1em;
        }

        ol.comment-list li.comment ul {
            font-size: 11px;
            list-style: square;
            margin: 0 0 1em 2em;
        }

        ol.comment-list li.comment div.reply {
            font-size: 11px;
            margin-bottom: 1em;
        }

            ol.comment-list li.comment div.reply a {
                font-weight: bold;
                color: #E67E22;
            }

        ol.comment-list li.comment ul.children li.depth-2 {
            border-left: 3px solid #370348;
            margin: 0 0 .25em .25em;
        }

        ol.comment-list li.comment ul.children li.depth-3 {
            border-left: 3px solid #5a1a6e;
            margin: 0 0 .25em .25em;
        }

        ol.comment-list li.comment ul.children li.depth-4 {
            border-left: 3px solid #E67E22;
            margin: 0 0 .25em .25em;
        }

    ol.comment-list li.even {
        background: #fff;
    }

    ol.comment-list li.odd {
        background: #f8f9fa;
    }

div.comment-author {
    font-family: 'Roboto', sans-serif !important;
}

    div.comment-author b {
        font-family: 'Roboto', sans-serif !important;
        font-weight: 700 !important;
    }

div.comment-metadata {
    font-size: 0.8em;
    color: #6c757d;
}

div.comment-content p {
    font-size: 1em !important;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        border-color: #E67E22;
        box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
        outline: none;
    }

.btn-primary {
    background-color: #E67E22;
    border-color: #E67E22;
}

    .btn-primary:hover {
        background-color: #c76d1a;
        border-color: #c76d1a;
    }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-orange {
    color: #E67E22 !important;
}

.text-purple {
    color: #370348 !important;
}

.bg-orange {
    background-color: #E67E22 !important;
}

.bg-purple {
    background-color: #370348 !important;
}

hr {
    border-bottom: solid 1px #e9ecef;
}

/* ============================================
   IMAGES
   ============================================ */
img.mtg_logo {
    width: 10em;
}

ul.social {
    list-style: none;
    margin: 0;
    padding: 0;
}

    ul.social li {
        display: inline;
    }

    ul.social img {
        padding: 0.2em;
        width: 2em;
    }

/* ============================================
   LEGACY STYLES - Kept for compatibility
   ============================================ */
.mtg_blue_bg {
    background-color: #370348 !important; /* Updated to purple */
}

div.border-below {
    border-bottom: solid 1px #e9ecef;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1199px) {
    a.login-link {
        padding: 0;
        padding-bottom: 0.5em;
    }
}

@media (max-width: 768px) {
    div#primary,
    div#secondary,
    div#sidebar-1 {
        padding-top: 1em;
    }
}

/* ============================================
   ACTIVE NAV STATE (Desktop)
   ============================================ */
@media (min-width: 1200px) {
    li.active-nav {
        background-color: rgba(255, 255, 255, 0.15) !important;
        border-radius: 6px;
    }

        li.active-nav a.nav-link {
            color: #ffffff !important;
        }
}
/*
 * MTG Sidebar Styles
 * Updated for Morpheus Trading Academy rebrand
 * Add this to your site.css or enqueue separately
 */

/* ============================================
   SIDEBAR CONTAINER
   ============================================ */
#sidebar-1,
#secondary {
    padding-top: 2em;
}

    #sidebar-1 .widget,
    #secondary .widget {
        margin-bottom: 2rem;
    }

        /* ============================================
   WIDGET TITLES - Brand Styling
   ============================================ */
        #sidebar-1 .widget-title,
        #sidebar-1 .widget h2,
        #sidebar-1 h2.widget-title,
        #secondary .widget-title,
        #secondary .widget h2 {
            font-family: 'Roboto', sans-serif !important;
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a2e;
            border-bottom: 3px solid #E67E22;
            padding-bottom: 0.75rem;
            margin-bottom: 1.25rem;
            text-transform: none;
        }

    /* ============================================
   KAJABI FORM EMBED - Override Default Styles
   ============================================ */
    /* Target Kajabi form containers */
    #sidebar-1 .kjb-form,
    #sidebar-1 [class*="kajabi"],
    #sidebar-1 iframe[src*="kajabi"],
    .sidebar .kjb-form,
    .kjb-form-wrapper {
        border-radius: 12px !important;
        overflow: hidden;
    }

        /* Override Kajabi's default cyan/turquoise with brand colors */
        #sidebar-1 .kjb-form .kjb-form__header,
        #sidebar-1 [class*="kajabi"] [class*="header"],
        .sidebar-cta-box {
            background: linear-gradient(135deg, #370348 0%, #5a1a6e 100%) !important;
        }

/* ============================================
   CUSTOM SIDEBAR CTA BOX
   (Use this class for custom HTML widgets)
   ============================================ */
.sidebar-cta-box {
    background: linear-gradient(135deg, #370348 0%, #5a1a6e 100%);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(55, 3, 72, 0.3);
}

    .sidebar-cta-box h3,
    .sidebar-cta-box .cta-title {
        color: #E67E22 !important;
        font-family: 'Roboto', sans-serif !important;
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .sidebar-cta-box .cta-subtitle {
        color: #f39c4d !important;
        font-family: 'Roboto', sans-serif !important;
        font-size: 1rem;
        font-style: italic;
        font-weight: 500;
        margin-bottom: 1rem;
    }

    .sidebar-cta-box p,
    .sidebar-cta-box li {
        color: #ffffff !important;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .sidebar-cta-box ul {
        list-style: none;
        padding: 0;
        margin: 1rem 0;
        text-align: left;
    }

        .sidebar-cta-box ul li {
            padding: 0.35rem 0;
            padding-left: 1.5rem;
            position: relative;
        }

            .sidebar-cta-box ul li::before {
                content: "?";
                color: #E67E22;
                font-weight: bold;
                position: absolute;
                left: 0;
            }

    /* CTA Form Inputs */
    .sidebar-cta-box input[type="text"],
    .sidebar-cta-box input[type="email"] {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        background: #ffffff;
        color: #333;
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

        .sidebar-cta-box input[type="text"]:focus,
        .sidebar-cta-box input[type="email"]:focus {
            outline: none;
            border-color: #E67E22;
            box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3);
        }

    .sidebar-cta-box input::placeholder {
        color: #999;
    }

    /* CTA Button */
    .sidebar-cta-box .btn-cta,
    .sidebar-cta-box button[type="submit"],
    .sidebar-cta-box input[type="submit"] {
        background: #E67E22 !important;
        color: #ffffff !important;
        border: none !important;
        padding: 0.875rem 1.5rem !important;
        font-family: 'Roboto', sans-serif !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px;
        border-radius: 6px !important;
        cursor: pointer;
        transition: all 0.3s ease !important;
        width: 100%;
        display: block;
    }

        .sidebar-cta-box .btn-cta:hover,
        .sidebar-cta-box button[type="submit"]:hover,
        .sidebar-cta-box input[type="submit"]:hover {
            background: #c76d1a !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
        }

    .sidebar-cta-box .cta-note {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.7) !important;
        margin-top: 1rem;
    }

        .sidebar-cta-box .cta-note svg,
        .sidebar-cta-box .cta-note .checkmark {
            color: #4ade80;
            margin-right: 0.25rem;
        }

/* ============================================
   SERVICES / INFO BOX
   ============================================ */
.sidebar-info-box,
#sidebar-1 .widget_text,
#sidebar-1 .widget_custom_html {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

    .sidebar-info-box h3,
    .sidebar-info-box h4 {
        font-family: 'Roboto', sans-serif !important;
        font-size: 1.25rem;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 1rem;
    }

    .sidebar-info-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .sidebar-info-box ul li {
            padding: 0.75rem 0;
            border-bottom: 1px solid #e9ecef;
        }

            .sidebar-info-box ul li:last-child {
                border-bottom: none;
            }

            .sidebar-info-box ul li a {
                color: #370348;
                font-weight: 500;
                display: flex;
                align-items: center;
                transition: color 0.3s ease;
            }

                .sidebar-info-box ul li a:hover {
                    color: #E67E22;
                }

                .sidebar-info-box ul li a::before {
                    content: "?";
                    margin-right: 0.5rem;
                    color: #E67E22;
                }

/* ============================================
   SEARCH WIDGET
   ============================================ */
#sidebar-1 .widget_search,
#secondary .search {
    margin-bottom: 2rem;
}

    #sidebar-1 .widget_search .search-form,
    #secondary .search .search-form {
        display: flex;
    }

    #sidebar-1 .widget_search .search-field,
    #secondary .search input[type="search"] {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 1px solid #e9ecef;
        border-right: none;
        border-radius: 6px 0 0 6px;
        font-size: 0.95rem;
    }

        #sidebar-1 .widget_search .search-field:focus,
        #secondary .search input[type="search"]:focus {
            outline: none;
            border-color: #E67E22;
            box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
        }

    #sidebar-1 .widget_search .search-submit,
    #secondary .search button[type="submit"] {
        background: #370348;
        color: #ffffff;
        border: none;
        padding: 0.75rem 1.25rem;
        border-radius: 0 6px 6px 0;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        #sidebar-1 .widget_search .search-submit:hover,
        #secondary .search button[type="submit"]:hover {
            background: #5a1a6e;
        }

/* ============================================
   RECENT POSTS WIDGET
   ============================================ */
#sidebar-1 .widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #sidebar-1 .widget_recent_entries ul li {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e9ecef;
    }

        #sidebar-1 .widget_recent_entries ul li:last-child {
            border-bottom: none;
        }

        #sidebar-1 .widget_recent_entries ul li a {
            color: #333;
            font-weight: 500;
            line-height: 1.4;
            transition: color 0.3s ease;
        }

            #sidebar-1 .widget_recent_entries ul li a:hover {
                color: #E67E22;
            }

        #sidebar-1 .widget_recent_entries ul li .post-date {
            display: block;
            font-size: 0.8rem;
            color: #6c757d;
            margin-top: 0.25rem;
        }

/* ============================================
   CATEGORIES WIDGET
   ============================================ */
#sidebar-1 .widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #sidebar-1 .widget_categories ul li {
        padding: 0.5rem 0;
    }

        #sidebar-1 .widget_categories ul li a {
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: color 0.3s ease;
        }

            #sidebar-1 .widget_categories ul li a:hover {
                color: #E67E22;
            }

            /* Category count badge */
            #sidebar-1 .widget_categories ul li a::after {
                content: attr(data-count);
                background: #f8f9fa;
                color: #6c757d;
                font-size: 0.75rem;
                padding: 0.15rem 0.5rem;
                border-radius: 10px;
            }

/* ============================================
   TAGS WIDGET
   ============================================ */
#sidebar-1 .widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    #sidebar-1 .widget_tag_cloud .tagcloud a {
        background: #f8f9fa;
        color: #333;
        padding: 0.35rem 0.75rem;
        border-radius: 4px;
        font-size: 0.85rem !important;
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }

        #sidebar-1 .widget_tag_cloud .tagcloud a:hover {
            background: #E67E22;
            color: #ffffff;
            border-color: #E67E22;
        }

/* ============================================
   SOCIAL LINKS IN SIDEBAR
   ============================================ */
.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

    .sidebar-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(55, 3, 72, 0.1);
        color: #370348;
        transition: all 0.3s ease;
    }

        .sidebar-social a:hover {
            background: #E67E22;
            color: #ffffff;
            transform: translateY(-2px);
        }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    #sidebar-1,
    #secondary {
        padding-top: 2rem;
        margin-top: 2rem;
        border-top: 1px solid #e9ecef;
    }
}

@media (max-width: 576px) {
    .sidebar-cta-box {
        padding: 1.25rem;
    }

        .sidebar-cta-box h3 {
            font-size: 1.2rem;
        }
}
