/**
 * GLP-1 Support Guides Pro - Main Styles
 * 
 * Design System: Violet (#7C4DFF) + Teal (#08B2A5)
 * 
 * @package GLP1_Support_Guides_Pro
 */

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

/* Reading Progress Bar */
.cc-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grey-100);
    z-index: 9999;
}

.cc-reading-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--violet-primary), var(--teal-primary));
    width: 0;
    transition: width 100ms ease-out;
}

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

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

.cc-hero__container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   ARCHIVE PAGES (CATEGORY & LIST)
   ============================================ */

.cc-archive-wrapper {
    min-height: 100vh;
    background: #FAFAFA;
}

.cc-archive-hero {
    background: linear-gradient(135deg, var(--violet-primary) 0%, var(--teal-primary) 100%);
    padding: 80px 24px 64px;
    color: var(--white);
    text-align: center;
}

.cc-archive-hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.cc-archive-hero__title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.cc-archive-hero__desc {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.cc-archive-content {
    padding: 64px 24px;
}

.cc-archive-content__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cc-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.cc-no-guides {
    text-align: center;
    padding: 80px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cc-no-guides p {
    font-size: 1.125rem;
    color: var(--grey-700);
    margin-bottom: 24px;
}

.cc-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--violet-primary), var(--teal-primary));
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 77, 255, 0.3);
    color: white;
}

/* ============================================
   GUIDE CARDS
   ============================================ */

.cc-guide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cc-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cc-guide-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--violet-primary), var(--teal-primary));
}

.cc-guide-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cc-guide-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F3E8FF;
    color: var(--violet-primary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.cc-guide-card__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.cc-guide-card__excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--grey-700);
    margin: 0 0 20px 0;
    flex: 1;
}

.cc-guide-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--grey-500);
    padding-top: 16px;
    border-top: 1px solid var(--grey-100);
}

.cc-guide-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-guide-card a {
    text-decoration: none;
    color: inherit;
}

/* Breadcrumbs (continues from hero section) */
.cc-breadcrumbs {
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--grey-500);
}

.cc-breadcrumbs a {
    color: var(--violet-primary);
    text-decoration: none;
}

.cc-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================
   SINGLE GUIDE - HERO SECTION
   ============================================ */

.cc-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

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

.cc-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.cc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.cc-hero__badge-icon {
    font-size: 1.125rem;
}

.cc-hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 24px 0;
}

.cc-hero__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    opacity: 0.95;
}

.cc-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
}

.cc-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.cc-hero__excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
}

/* ============================================
   SINGLE GUIDE - CONTENT AREA
   ============================================ */

.cc-content-wrapper {
    background: #FAFAFA;
    padding: 64px 0;
    min-height: 60vh;
}

.cc-content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

/* Table of Contents Sidebar */
.cc-toc {
    position: relative;
}

.cc-toc__sticky {
    position: sticky;
    top: 96px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cc-toc__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 0 0 16px 0;
}

.cc-toc__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-toc__nav a {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--grey-700);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.cc-toc__nav a:hover,
.cc-toc__nav a.active {
    color: var(--violet-primary);
    border-left-color: var(--violet-primary);
    background: rgba(124, 77, 255, 0.05);
}

/* Main Content */
.cc-content {
    background: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 800px;
}

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

.cc-content h2:first-child {
    margin-top: 0;
}

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

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

.cc-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--grey-700);
    margin: 0 0 20px 0;
}

.cc-content strong {
    font-weight: 600;
    color: var(--grey-900);
}

.cc-content ul,
.cc-content ol {
    margin: 0 0 24px 0;
    padding-left: 28px;
}

.cc-content li {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--grey-700);
    margin-bottom: 12px;
}

.cc-content li strong {
    color: var(--grey-900);
}

/* Special Callout Boxes */
.cc-reassurance-box {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.08) 0%, rgba(8, 178, 165, 0.08) 100%);
    border-left: 4px solid var(--violet-primary);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
}

.cc-reassurance-box p {
    margin: 0;
    line-height: 1.7;
}

.cc-reassurance-box strong {
    color: var(--violet-primary);
    font-weight: 600;
}

/* FAQ Section */
.cc-faq-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--grey-100);
}

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

.cc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cc-faq-item {
    background: var(--grey-100);
    border-radius: 12px;
    padding: 24px;
}

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

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

.cc-faq-answer p {
    margin: 0;
}

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

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

.cc-affiliate-intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--grey-700);
    margin-bottom: 24px;
}

.cc-affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.cc-affiliate-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cc-affiliate-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* Hub Page Wrapper */
.cc-hub-wrapper {
    min-height: 100vh;
    background: #FAFAFA;
}

/* Hub Hero Section */
.cc-hub-hero {
    background: linear-gradient(135deg, var(--violet-primary) 0%, var(--teal-primary) 100%);
    padding: 80px 24px 64px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cc-hub-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.cc-hub-hero__container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cc-hub-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cc-hub-hero__badge-icon {
    font-size: 1rem;
}

.cc-hub-hero__badge-text {
    color: var(--white);
}

.cc-hub-hero__title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: var(--white);
}

.cc-hub-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
    color: var(--white);
}

/* Trust Section */
.cc-hub-trust {
    padding: 48px 24px;
    background: white;
}

.cc-hub-trust__container {
    max-width: 800px;
    margin: 0 auto;
}

/* Hub Sections */
.cc-hub-section {
    padding: 64px 24px;
    background: white;
}

.cc-hub-section--alt {
    background: #FAFAFA;
}

.cc-hub-section__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cc-hub-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 0 0 12px 0;
    text-align: center;
}

.cc-hub-section__intro {
    font-size: 1.125rem;
    color: var(--grey-700);
    text-align: center;
    margin: 0 0 48px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Two-column grid for gender-specific */
.cc-hub-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 800px;
    margin: 0 auto;
}

/* Resource Cards */
.cc-hub-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.cc-resource-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.cc-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    text-decoration: none;
}

.cc-resource-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cc-resource-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-900);
    margin: 0 0 8px 0;
}

.cc-resource-card__desc {
    font-size: 0.9375rem;
    color: var(--grey-700);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cc-content-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cc-toc {
        display: none;
    }
    
    .cc-content {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .cc-hero {
        padding: 60px 20px 48px;
    }
    
    .cc-hero__title {
        font-size: 2rem;
    }
    
    .cc-hero__excerpt {
        font-size: 1.0625rem;
    }
    
    .cc-archive-hero__title {
        font-size: 2rem;
    }
    
    .cc-content {
        padding: 24px 20px;
    }
    
    .cc-content h2 {
        font-size: 1.625rem;
    }
    
    .cc-content h3 {
        font-size: 1.25rem;
    }
    
    .cc-hub-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-hub-hero__title {
        font-size: 2rem;
    }
    
    .cc-hub-section__title {
        font-size: 1.5rem;
    }
    
    .cc-resource-card {
        padding: 24px;
    }
}