/* ==========================================================================
   QUIZ METHODOLOGY PAGE SPECIFIC STYLES
   ========================================================================== */

/* ==========================================================================
   PAGE SETUP
   ========================================================================== */
.methodology-page {
    background: var(--color-darker);
    min-height: 100vh;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding: 10rem 4rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--dark-gradient);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-gradient);
    top: -20%;
    right: -10%;
    animation: float 25s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-gradient);
    bottom: -20%;
    left: -10%;
    animation: float 30s ease-in-out infinite reverse;
}

/* Chart Visualization Background */
.chart-visualization {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.05;
}

.axis {
    position: absolute;
    background: var(--primary-gradient);
}

.axis-x {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
}

.axis-y {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
}

.quadrant {
    position: absolute;
    width: 50%;
    height: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.q1 { top: 0; left: 0; }
.q2 { top: 0; right: 0; }
.q3 { bottom: 0; left: 0; }
.q4 { bottom: 0; right: 0; }

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */
.problem-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.problem-visual {
    position: relative;
}

.spectrum-line {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spectrum-bar {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 2px;
}

.spectrum-label {
    font-weight: 600;
    font-size: 1.125rem;
}

.spectrum-problems {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem-point {
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.3);
    padding: 1rem;
    border-radius: 12px;
    color: #f5576c;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out;
}

.problem-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-light);
}

.problem-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.problem-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.problem-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.problem-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-light);
}

.problem-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==========================================================================
   INNOVATION SECTION
   ========================================================================== */
.innovation-section {
    padding: 6rem 0;
    background: var(--color-darker);
}

.axes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.axis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.axis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.axis-card:hover::before {
    transform: scaleX(1);
}

.axis-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.axis-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.axis-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.axis-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.axis-examples {
    list-style: none;
    margin-bottom: 2rem;
}

.axis-examples li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 1.5rem;
}

.axis-examples li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-purple);
}

.axis-spectrum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.spectrum-end {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

.spectrum-gradient {
    flex: 1;
    height: 6px;
    border-radius: 3px;
}

.spectrum-gradient.economic {
    background: linear-gradient(90deg, rgba(245, 87, 108, 0.5) 0%, #667eea 100%);
}

.spectrum-gradient.personal {
    background: linear-gradient(90deg, rgba(245, 87, 108, 0.5) 0%, #4facfe 100%);
}

/* Chart Preview */
.chart-preview {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.chart-preview h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.chart-preview p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
}

.interactive-chart {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.chart-quadrant {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.chart-quadrant:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    z-index: 10;
}

.chart-quadrant.libertarian {
    background: rgba(102, 126, 234, 0.1);
    grid-column: 2;
    grid-row: 1;
}

.chart-quadrant.liberal {
    background: rgba(79, 172, 254, 0.1);
    grid-column: 1;
    grid-row: 1;
}

.chart-quadrant.conservative {
    background: rgba(240, 147, 251, 0.1);
    grid-column: 2;
    grid-row: 2;
}

.chart-quadrant.authoritarian {
    background: rgba(245, 87, 108, 0.1);
    grid-column: 1;
    grid-row: 2;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(254, 225, 64, 0.1);
    border: 2px solid rgba(254, 225, 64, 0.3);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chart-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(254, 225, 64, 0.2);
}

.quadrant-label {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-light);
}

.quadrant-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.chart-axes {
    margin-top: 2rem;
}

.axis-label {
    display: inline-block;
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ==========================================================================
   VALIDATION SECTION
   ========================================================================== */
.validation-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.validation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.validation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.validation-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.validation-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.validation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.validation-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-section {
    padding: 6rem 0;
    background: var(--color-darker);
}

.methodology-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: white;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.step-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
    position: relative;
}

.step-connector::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-purple);
    font-size: 1.5rem;
}

/* Benefits Section */
.benefits-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.benefits-section h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--color-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-light);
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   IMPACT SECTION
   ========================================================================== */
.impact-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--color-purple);
    opacity: 0.3;
}

.testimonial-quote {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    padding-top: 1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--color-light);
}

.author-position {
    color: var(--color-purple);
    font-size: 0.875rem;
}

.impact-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 24px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.impact-quote blockquote {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.impact-quote cite {
    color: var(--color-purple);
    font-style: normal;
    font-weight: 600;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(116, 75, 162, 0.2) 100%);
    text-align: center;
}

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

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: var(--color-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

.cta-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(30px, -30px) scale(1.1) rotate(120deg); }
    66% { transform: translate(-20px, 20px) scale(0.9) rotate(240deg); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .axes-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .validation-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 2rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .chart-grid {
        height: 300px;
    }

    .chart-center {
        width: 100px;
        height: 100px;
    }

    .quadrant-label {
        font-size: 0.875rem;
    }

    .quadrant-desc {
        font-size: 0.625rem;
    }

    .methodology-steps {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: -1rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}