/* ============================================
   World Political Parties — English Homepage
   Tech effects, magazine layout, channel sections
   ============================================ */

/* ---------- Section Label ---------- */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.label-line {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--color-accent);
}

/* ============ HERO ============ */
.hero-section {
    position: relative;
    min-height: 92vh;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Particle canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero overlay: gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 42, 74, 0.92) 0%,
        rgba(26, 42, 74, 0.75) 40%,
        rgba(10, 20, 50, 0.6) 100%
    );
    z-index: 2;
}

/* Animated grid lines on hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Hero Content */
.hero-content {
    color: #fff;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-excerpt {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s 0.15s ease-out both;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    animation: fadeInUp 0.8s 0.3s ease-out both;
}

.hero-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.hero-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201, 168, 76, 0.5);
}

.hero-date::before,
.hero-read-time::before {
    content: '·';
    margin-right: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.45s ease-out both;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #c9a84c 0%, #b8942e 100%);
    color: var(--color-primary);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-lg:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.btn-ghost-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-ghost-lg:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s 0.3s ease-out both;
}

.hero-image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.2);
}

.hero-image-frame img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Image glare effect */
.image-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.06) 45%,
        transparent 50%
    );
    animation: glareMove 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glareMove {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

/* Floating stat cards */
.stat-card {
    position: absolute;
    background: rgba(26, 42, 74, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    animation: floatCard 3s ease-in-out infinite;
    min-width: 110px;
}

.stat-card-1 {
    bottom: -15px;
    left: -20px;
    animation-delay: 0s;
}

.stat-card-2 {
    top: 20px;
    right: -20px;
    animation-delay: 1s;
}

.stat-card-3 {
    bottom: 20px;
    right: -10px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s 1s ease-out both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    margin: 0.5rem auto 0;
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: -4px;
    left: -2px;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: -5px; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 40px; opacity: 0; }
}

/* Hero animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ============ ABOUT SECTION ============ */
.section-about {
    padding: 6rem 0;
    background: var(--color-bg-warm);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.about-lead {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-features {
    margin: 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature svg {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature strong {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.about-feature span {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Journal mockup */
.journal-mockup {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border-light);
}

.mockup-header {
    background: var(--color-bg-light);
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.mockup-body {
    padding: 0;
}

.mockup-cover-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.mockup-cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26,42,74,0.95));
    padding: 2rem 1.25rem 1.25rem;
    color: #fff;
}

.mockup-vol {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.mockup-title-sm {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font-heading);
    margin-bottom: 2px;
}

.mockup-sub {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
}

.mockup-toc {
    padding: 1.25rem;
    border-top: 1px solid var(--color-border-light);
}

.mockup-toc h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.mockup-toc ul li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
}

.mockup-toc ul li:last-child {
    border-bottom: none;
}

.mockup-toc ul li span {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 0.7rem;
    flex-shrink: 0;
    width: 20px;
}

/* ============ SECTION LATEST ============ */
.section-latest {
    padding: 5rem 0;
    background: var(--color-bg);
}

/* ============ CHANNEL SECTIONS ============ */
.section-channels {
    padding: 5rem 0 6rem;
    background: var(--color-bg-warm);
}

.channel-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 4rem;
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border-light);
    transition: box-shadow 0.3s ease;
}

.channel-section:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

/* Alternate image side */
.channel-section:nth-child(even) .channel-image-side {
    order: 2;
}

.channel-section:nth-child(even) .channel-content-side {
    order: 1;
}

.channel-image-side {
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.channel-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.channel-section:hover .channel-image-side img {
    transform: scale(1.04);
}

.channel-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,42,74,0.5), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chan-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Channel content */
.channel-content-side {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chan-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--color-border);
    line-height: 1;
    margin-bottom: -0.5rem;
    opacity: 0.5;
}

.chan-tag {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.channel-content-side h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.channel-content-side > p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.chan-topics {
    margin-bottom: 1.25rem;
}

.chan-topics li {
    padding: 0.6rem 0;
    border-top: 1px solid var(--color-border-light);
}

.chan-topics li:first-child {
    border-top: none;
}

.chan-topics strong {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.chan-topics span {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Preview articles in channel */
.chan-articles-preview {
    margin-bottom: 1.25rem;
}

.chan-preview-item {
    padding: 0.5rem 0;
}

.chan-preview-item a {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--color-text);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.chan-preview-item a:hover {
    background: var(--color-bg-light);
    color: var(--color-red-light);
}

.preview-num {
    color: var(--color-accent);
    font-weight: 900;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.chan-preview-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2px;
    color: inherit;
}

.chan-preview-item time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Channel CTA button */
.btn-chan {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
    width: fit-content;
}

.btn-chan:hover {
    color: var(--color-red-light);
    gap: 0.7rem;
}

/* Channel-specific accent colors */
.chan-frontier .chan-tag { background: #8b1a1a; }
.chan-country .chan-tag { background: #1a5c3a; }
.chan-diplomacy .chan-tag { background: #1a3a6c; }
.chan-society .chan-tag { background: #5c3a6c; }
.chan-history .chan-tag { background: #6c5c3a; }
.chan-debate .chan-tag { background: #3a6c5c; }

/* ============ NEWSLETTER ============ */
.section-newsletter {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a2a5e 50%, #0d1b3e 100%);
    overflow: hidden;
}

.newsletter-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 40%);
}

.newsletter-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 50%;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.newsletter-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.newsletter-content > p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.newsletter-form label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.form-row {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.35);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.12);
}

.btn-subscribe-lg {
    background: linear-gradient(135deg, #c9a84c 0%, #b8942e 100%);
    color: #0d1b3e;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-subscribe-lg:hover {
    background: #fff;
    transform: translateY(-1px);
}

.form-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.form-note a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .channel-section {
        grid-template-columns: 1fr;
    }
    
    .channel-section:nth-child(even) .channel-image-side {
        order: 1;
    }
    
    .channel-section:nth-child(even) .channel-content-side {
        order: 2;
    }
    
    .channel-image-side {
        min-height: 240px;
        max-height: 280px;
    }
    
    .stat-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-primary-lg,
    .btn-ghost-lg {
        justify-content: center;
        width: 100%;
    }
    
    .channel-content-side {
        padding: 1.5rem;
    }
    
    .about-grid {
        gap: 2rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .hero-date::before,
    .hero-read-time::before {
        display: none;
    }
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
