/**
 * GEO/AEO 시리즈 전용 스타일
 * - Tailwind CSS와 함께 사용
 * - 차트, 다이어그램, 카드 등 시리즈 공통 스타일
 */

/* ========================================
   GEO Hero Section (Matching SEO About Page Impact)
======================================== */
.geo-hero-wrap {
    background: #fff;
    padding: 200px 0 80px 0;
    text-align: center;
}

.geo-hero-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.geo-hero-inner h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    font-family: 'Pretendard', sans-serif;
}

.geo-hero-inner h1 span {
    color: #00EB88;
}

.geo-hero-inner h2 {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Pretendard', sans-serif;
}

.geo-hero-inner h2 span {
    color: #00EB88;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .geo-hero-wrap {
        padding: 140px 0 60px 0;
    }
    .geo-hero-inner h1 {
        font-size: 56px;
    }
    .geo-hero-inner h2 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .geo-hero-wrap {
        padding: 110px 0 40px 0;
    }
    .geo-hero-inner h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 24px;
    }
    .geo-hero-inner h2 {
        font-size: 16px;
        line-height: 1.5;
    }
    .geo-hero-inner h2 br {
        display: none;
    }
}

/* ========================================
   GEO Series Container
======================================== */
#series-container, #geo-page {
    background-color: #f8fafc;
}

/* ========================================
   Chart Container
======================================== */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* ========================================
   Strategy Card
======================================== */
.strategy-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ========================================
   Venn Diagram (AEO vs SEO)
======================================== */
.v-diagram-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.875rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease-in-out;
}

.v-diagram-circle:hover {
    transform: scale(1.05);
}

.v-diagram-overlap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    text-align: center;
    font-size: 1rem;
    line-height: 1.2;
    padding: 8px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ========================================
   Flow Arrow (AEO -> GEO)
======================================== */
.flow-arrow {
    font-size: 2rem;
    color: #72D2FF;
    margin: 0 1rem;
}

/* ========================================
   GEO Sidebar Navigation
======================================== */
.geo-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
}

.geo-sidebar .nav-part-title {
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 16px;
    margin-bottom: 8px;
}

.geo-sidebar .nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.geo-sidebar .nav-item:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.geo-sidebar .nav-item.active {
    background-color: #e0f2fe;
    color: #0369a1;
}

/* ========================================
   Mobile Sidebar
======================================== */
#mobile-sidebar {
    transition: all 0.3s ease;
}

#mobile-sidebar.hidden {
    display: none;
}

#sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* ========================================
   Section Styles
======================================== */
.geo-section {
    scroll-margin-top: 80px;
}

/* ========================================
   Dark Section (Future AEO/GEO)
======================================== */
.geo-dark-section {
    background-color: #121C26;
}

.geo-dark-section h2 {
    color: #72D2FF;
}

.geo-dark-section p {
    color: #9ca3af;
}

/* ========================================
   Recommendation List
======================================== */
.recommendation-item {
    transition: box-shadow 0.2s;
}

.recommendation-item:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.recommendation-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #0284c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

/* ========================================
   Playbook Grid
======================================== */
.playbook-card {
    transition: all 0.2s;
}

.playbook-card:hover {
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

/* ========================================
   Stat Card Animation
======================================== */
#stat-card {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

#stat-card h3,
#stat-card p {
    color: #fff;
}

#animated-stat {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   GEO 3-Circle Venn Diagram
======================================== */
.v-diagram-circle-geo {
    background-color: #10b981;
}

/* ========================================
   GEO Comparison Table
======================================== */
.geo-comparison-table {
    border-top: 1px solid #e2e8f0;
}

.geo-comparison-row {
    border-bottom: 1px solid #f1f5f9;
}

.geo-comparison-row:last-child {
    border-bottom: none;
}

.geo-comparison-label {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
    text-align: center;
}

/* ========================================
   GEO 5-Step Process Timeline
======================================== */
.geo-process-timeline {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.geo-step-item {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 180px;
    max-width: 240px;
}

.geo-step-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.geo-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.geo-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.geo-step-connector {
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-top: 32px;
    color: #d1d5db;
    font-size: 20px;
    flex-shrink: 0;
}

.geo-step-connector::after {
    content: '\2192';
    color: #10b981;
    font-size: 24px;
    font-weight: bold;
}

/* ========================================
   GEO CTA Buttons
======================================== */
.geo-cta-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    min-width: 200px;
}

.geo-cta-button-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.geo-cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.4);
}

.geo-cta-button-secondary {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #4b5563;
}

.geo-cta-button-secondary:hover {
    border-color: #10b981;
    color: #10b981;
}

/* ========================================
   Hero Description
======================================== */
.geo-hero-desc {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.geo-hero-desc span {
    color: #00EB88;
    font-weight: 600;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 767px) {
    .v-diagram-circle {
        width: 120px;
        height: 120px;
        font-size: 1.25rem;
    }

    .v-diagram-overlap {
        width: 70px;
        height: 70px;
        font-size: 0.75rem;
    }

    .flow-arrow {
        font-size: 1.5rem;
        margin: 0.5rem;
    }

    /* Process Timeline: vertical on mobile */
    .geo-process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .geo-step-item {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .geo-step-connector {
        margin-top: 0;
        padding: 4px 0;
        transform: rotate(90deg);
    }

    /* Comparison table: smaller text */
    .geo-comparison-table .grid > div {
        padding: 8px !important;
        font-size: 12px !important;
    }

    .geo-hero-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .geo-hero-desc .pc-br {
        display: none;
    }

    .geo-cta-button {
        min-width: 160px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .geo-process-timeline {
        flex-wrap: wrap;
        gap: 12px;
    }

    .geo-step-item {
        min-width: 150px;
        max-width: 200px;
    }
}
