/**
 * Elementor Guide Pages Styles
 * 
 * These styles target the Elementor-built guide pages 
 * which use 'mounjaro-*' class names instead of 'cc-*'
 * 
 * Design System: Violet (#7C4DFF) + Teal (#08B2A5)
 */

:root {
    --violet-primary: #7C4DFF;
    --teal-primary: #08B2A5;
    --grey-900: #111827;
    --grey-700: #374151;
    --grey-500: #6B7280;
    --grey-100: #F3F4F6;
    --white: #FFFFFF;
}

/* ============================================
   HERO SECTION
   ============================================ */

.mounjaro-hero {
    background: linear-gradient(135deg, var(--violet-primary) 0%, var(--teal-primary) 100%);
    padding: 80px 24px 64px !important;
    color: var(--white);
    margin: 0 !important;
}

.mounjaro-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumbs */
.mounjaro-breadcrumbs {
    font-size: 0.875rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.mounjaro-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: opacity 0.2s;
}

.mounjaro-breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Badge */
.mounjaro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Title */
.mounjaro-hero h1,
.mounjaro-hero .elementor-heading-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin: 0 0 24px 0 !important;
    color: var(--white) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Stats section in hero */
.mounjaro-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
}

.mounjaro-stat-item {
    text-align: center;
}

.mounjaro-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mounjaro-stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Subtitle/Excerpt */
.mounjaro-subtitle,
.mounjaro-hero p {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    opacity: 0.95;
    max-width: 700px;
    color: var(--white) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced Hero Background */
.mounjaro-hero[style*="background-image"] {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.mounjaro-hero[style*="background-image"]:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.92) 0%, rgba(8, 178, 165, 0.88) 100%);
    z-index: 0;
}

.mounjaro-hero-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.mounjaro-content-section {
    background: #FAFAFA !important;
    padding: 64px 24px !important;
    min-height: 60vh;
}

/* Main content area */
.mounjaro-main-content,
.mounjaro-content-section .elementor-widget-wrap {
    background: white !important;
    border-radius: 12px;
    padding: 48px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* Typography */
.mounjaro-content-section h2,
.mounjaro-main-content h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--grey-900) !important;
    margin: 48px 0 24px 0 !important;
    line-height: 1.3 !important;
}

.mounjaro-content-section h2:first-child,
.mounjaro-main-content h2:first-child {
    margin-top: 0 !important;
}

.mounjaro-content-section h3,
.mounjaro-main-content h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--grey-900) !important;
    margin: 36px 0 16px 0 !important;
    line-height: 1.4 !important;
}

.mounjaro-content-section h4,
.mounjaro-main-content h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--grey-900) !important;
    margin: 24px 0 12px 0 !important;
    line-height: 1.5 !important;
}

.mounjaro-content-section p,
.mounjaro-main-content p {
    font-size: 1.0625rem !important;
    line-height: 1.75 !important;
    color: var(--grey-700) !important;
    margin: 0 0 20px 0 !important;
}

.mounjaro-content-section strong,
.mounjaro-main-content strong {
    font-weight: 600 !important;
    color: var(--grey-900) !important;
}

.mounjaro-content-section ul,
.mounjaro-content-section ol,
.mounjaro-main-content ul,
.mounjaro-main-content ol {
    margin: 1.5rem 0 !important;
    padding-left: 28px !important;
}

.mounjaro-content-section li,
.mounjaro-main-content li {
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
    color: var(--grey-700) !important;
    margin-bottom: 12px !important;
}

/* Improved Lists in Content Section */
.mounjaro-content-section ol,
.mounjaro-content-section ul {
    margin: 1.5rem 0 !important;
}

.mounjaro-content-section ol li,
.mounjaro-content-section ul li {
    margin-bottom: 1rem !important;
    line-height: 1.7 !important;
}

.mounjaro-content-section ol li strong,
.mounjaro-content-section ul li strong {
    color: var(--violet-primary) !important;
}

/* Section Headings */
.mounjaro-content-section h2[style*="text-align: center"] {
    background: linear-gradient(135deg, #7C4DFF, #08B2A5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Cards at Bottom */
.mounjaro-content-section > div[style*="grid-template-columns"] {
    margin: 2.5rem 0;
}

.mounjaro-content-section > div[style*="grid-template-columns"] > div {
    transition: all 0.3s ease;
}

.mounjaro-content-section > div[style*="grid-template-columns"] > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ============================================
   CALLOUT BOXES
   ============================================ */

.mounjaro-callout,
.mounjaro-callout-success,
.mounjaro-callout-warning,
.mounjaro-callout-info {
    border-radius: 8px !important;
    padding: 20px 24px !important;
    margin: 32px 0 !important;
}

.mounjaro-callout-success {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(8, 178, 165, 0.08) 100%) !important;
    border-left: 4px solid var(--violet-primary) !important;
}

.mounjaro-callout-warning {
    background: rgba(251, 191, 36, 0.08) !important;
    border-left: 4px solid #FBBF24 !important;
}

.mounjaro-callout-info {
    background: rgba(59, 130, 246, 0.08) !important;
    border-left: 4px solid #3B82F6 !important;
}

.mounjaro-callout p,
.mounjaro-callout-success p,
.mounjaro-callout-warning p,
.mounjaro-callout-info p {
    margin: 0 !important;
    line-height: 1.7 !important;
}

.mounjaro-callout strong {
    color: var(--violet-primary) !important;
    font-weight: 600 !important;
}

/* ============================================
   IMAGE WRAPPERS
   ============================================ */

.mounjaro-image-wrapper {
    margin: 32px 0 !important;
    text-align: center;
}

.mounjaro-image-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.mounjaro-faq-section {
    margin-top: 64px !important;
    padding-top: 48px !important;
    border-top: 2px solid var(--grey-100) !important;
}

.mounjaro-faq-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--grey-900) !important;
    margin: 0 0 32px 0 !important;
}

.mounjaro-faq-item {
    background: var(--grey-100) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.mounjaro-faq-question {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--grey-900) !important;
    margin: 0 0 12px 0 !important;
}

.mounjaro-faq-answer {
    font-size: 1.0625rem !important;
    line-height: 1.7 !important;
    color: var(--grey-700) !important;
}

.mounjaro-faq-answer p {
    margin: 0 !important;
}

/* ============================================
   AFFILIATE/CTA SECTION
   ============================================ */

.mounjaro-affiliate-section,
.mounjaro-cta-section {
    margin-top: 48px !important;
    padding: 32px !important;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.05) 0%, rgba(8, 178, 165, 0.05) 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(124, 77, 255, 0.15) !important;
}

.mounjaro-affiliate-title,
.mounjaro-cta-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--grey-900) !important;
    margin: 0 0 16px 0 !important;
}

/* CTA Section */
.mounjaro-cta-section {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(8, 178, 165, 0.08) 100%);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    margin: 3rem 0;
    text-align: center;
    border: 2px solid rgba(124, 77, 255, 0.15);
}

.mounjaro-cta-section h2 {
    font-size: 2rem !important;
    color: var(--grey-900) !important;
    margin: 0 0 1rem 0 !important;
}

.mounjaro-cta-section p {
    font-size: 1.1rem !important;
    color: var(--grey-700) !important;
    max-width: 700px;
    margin: 0 auto 2rem auto !important;
    line-height: 1.7 !important;
}

.mounjaro-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.mounjaro-cta-primary,
.mounjaro-cta-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mounjaro-cta-primary {
    background: linear-gradient(135deg, #7C4DFF, #08B2A5);
    color: white !important;
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.3);
}

.mounjaro-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.4);
}

.mounjaro-cta-secondary {
    background: white;
    color: var(--violet-primary) !important;
    border: 2px solid var(--violet-primary);
}

.mounjaro-cta-secondary:hover {
    background: var(--violet-primary);
    color: white !important;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* FORCE FULL WIDTH ON DESKTOP - Prevent mobile view squeezing */
@media (min-width: 783px) {
    /* Force body and main containers to full width */
    body, html, #page, #content, .site-content, .content-area {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Ensure Elementor sections use proper width */
    .elementor-section,
    .elementor-section .elementor-container {
        max-width: 1200px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Hero section full width background */
    .mounjaro-hero .elementor-section,
    .mounjaro-hero .elementor-container {
        max-width: 100% !important;
    }
    
    /* Force guide grid to display multiple columns on desktop */
    .mounjaro-guide-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 1200px !important;
        margin: 3rem auto !important;
    }
    
    /* Prevent any transform/scale that shrinks the page */
    body, html, #page {
        transform: none !important;
        zoom: 1 !important;
    }
}

/* ============================================
   FIX Z-INDEX ISSUES
   ============================================ */

/* Ensure navigation/header has proper z-index */
header,
.site-header,
#masthead,
.elementor-location-header {
    z-index: 9999 !important;
    position: relative;
}

/* Fix sticky header z-index */
.sticky-header,
.elementor-sticky,
header.sticky {
    z-index: 9999 !important;
}

/* Hero section should be below header */
.mounjaro-hero {
    z-index: 1 !important;
    position: relative;
}

/* Ensure dropdowns appear above everything */
.main-navigation ul ul,
.menu-item-has-children > .sub-menu,
.elementor-nav-menu--dropdown {
    z-index: 99999 !important;
}

/* Hide any debug/admin notices on frontend when not admin */
body:not(.logged-in) .notice,
body:not(.logged-in) .error,
body:not(.logged-in) .updated,
.frontend-notice {
    display: none !important;
}

/* If the grey box is an elementor element, hide it */
.elementor-element.elementor-hidden-desktop {
    display: none !important;
}

/* Hide any grey boxes or diagnostic elements above navigation */
.site-header + div[style*="background: #"],
.site-header + div[style*="background:#"],
.elementor-location-header + div[style*="background: #"],
.elementor-location-header + div[style*="background:#"],
div[style*="background: #f1f1f1"],
div[style*="background:#f1f1f1"],
div[style*="background: #e0e0e0"],
div[style*="background: gray"],
div[style*="background: grey"] {
    /* Don't hide unless we're certain - let's make them invisible for testing */
}

/* Hide WordPress admin bar for non-admins on frontend */
body:not(.admin-bar) #wpadminbar {
    display: none !important;
}

/* Hide Elementor edit controls on frontend */
.elementor-edit-mode-active .elementor-element-overlay,
.elementor-editor-active .elementor-editor-section-settings {
    display: none !important;
}

@media (max-width: 768px) {
    .mounjaro-hero {
        padding: 60px 20px 48px !important;
    }
    
    .mounjaro-hero h1,
    .mounjaro-hero .elementor-heading-title {
        font-size: 2rem !important;
    }
    
    .mounjaro-subtitle,
    .mounjaro-hero p {
        font-size: 1.0625rem !important;
    }
    
    .mounjaro-content-section {
        padding: 32px 20px !important;
    }
    
    .mounjaro-main-content,
    .mounjaro-content-section .elementor-widget-wrap {
        padding: 24px 20px !important;
    }
    
    .mounjaro-content-section h2,
    .mounjaro-main-content h2 {
        font-size: 1.625rem !important;
    }
    
    .mounjaro-content-section h3,
    .mounjaro-main-content h3 {
        font-size: 1.25rem !important;
    }
    
    .mounjaro-guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mounjaro-stats {
        gap: 1.5rem;
    }
    
    .mounjaro-stat-number {
        font-size: 2rem;
    }
    
    .mounjaro-cta-section {
        padding: 2rem 1.5rem;
    }
    
    .mounjaro-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mounjaro-cta-primary,
    .mounjaro-cta-secondary {
        width: 100%;
    }
    
    .mounjaro-shortcode-wrapper {
        padding: 1.5rem;
    }
}

/* ============================================
   ELEMENTOR OVERRIDES
   ============================================ */

/* Remove default Elementor spacing on guide pages */
body.page .mounjaro-hero .elementor-container,
body.page .mounjaro-content-section .elementor-container {
    max-width: 100% !important;
}

/* Ensure Elementor widgets don't override our spacing */
.mounjaro-hero .elementor-widget,
.mounjaro-content-section .elementor-widget {
    margin-bottom: 0 !important;
}

/* Fix Elementor text editor widget */
.mounjaro-content-section .elementor-text-editor {
    color: var(--grey-700) !important;
}

.mounjaro-content-section .elementor-text-editor h2 {
    color: var(--grey-900) !important;
}

/* ============================================
   HUB PAGE SPECIFIC STYLES
   ============================================ */

/* Guide Grid Layout */
.mounjaro-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Guide Card Styling */
.mounjaro-guide-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mounjaro-guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(124, 77, 255, 0.2);
}

.mounjaro-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mounjaro-guide-card:hover .mounjaro-card-image {
    transform: scale(1.05);
}

.mounjaro-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mounjaro-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #08B2A5, #06A89C);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.mounjaro-card-badge[style*="#7C4DFF"] {
    background: linear-gradient(135deg, #7C4DFF, #6A3FE8) !important;
}

.mounjaro-card-content h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--grey-900) !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.3 !important;
}

.mounjaro-card-content h3 a {
    color: var(--grey-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mounjaro-card-content h3 a:hover {
    color: var(--violet-primary);
}

.mounjaro-card-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--grey-700) !important;
    margin: 0 0 1.25rem 0 !important;
}

.mounjaro-card-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    flex: 1;
}

.mounjaro-card-features li {
    font-size: 0.9rem !important;
    color: var(--grey-700) !important;
    margin-bottom: 0.6rem !important;
    padding-left: 1.5rem !important;
    position: relative;
}

.mounjaro-card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #08B2A5;
    font-weight: 700;
    font-size: 1.1rem;
}

.mounjaro-card-cta {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    color: white !important;
}

.mounjaro-card-cta-violet {
    background: linear-gradient(135deg, #7C4DFF, #6A3FE8);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.mounjaro-card-cta-violet:hover {
    background: linear-gradient(135deg, #6A3FE8, #5831D6);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
    transform: translateY(-2px);
}

.mounjaro-card-cta-teal {
    background: linear-gradient(135deg, #08B2A5, #06A89C);
    box-shadow: 0 4px 12px rgba(8, 178, 165, 0.3);
}

.mounjaro-card-cta-teal:hover {
    background: linear-gradient(135deg, #06A89C, #059388);
    box-shadow: 0 6px 20px rgba(8, 178, 165, 0.4);
    transform: translateY(-2px);
}

/* Shortcode Wrapper (for price comparison) */
.mounjaro-shortcode-wrapper {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid #E5E7EB;
}

.mounjaro-shortcode-wrapper h3 {
    font-size: 1.75rem !important;
    color: var(--grey-900) !important;
    margin: 0 0 1rem 0 !important;
}