/**
 * Homepage Specific Styles
 * สไตล์เฉพาะสำหรับหน้าแรก
 */

/* ========== Hero Section ========== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.hero-badge-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-main-cols {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}



/* Removed hero pulse glow */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 650px;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 25px;
    background: var(--primary-red-light);
    border: 1px solid var(--primary-red);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-extrabold);
    color: var(--primary-red);
    box-shadow: 0 10px 25px rgba(255, 60, 60, 0.2);
    animation: slideDown 0.6s ease-out;
}

.hero-badge .pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px currentColor;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #fff 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: var(--leading-relaxed);
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.btn-hero-premium {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b6b 100%);
    color: white !important;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 60, 60, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 60, 60, 0.5);
    background: linear-gradient(135deg, #ff6b6b 0%, var(--primary-red) 100%);
}

.btn-hero-premium i {
    font-size: 1.2em;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.btn-hero-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-hero-premium:hover::after {
    opacity: 1;
}

/* ========== Stats Dashboard ========== */

.hero-side-panel {
    flex: 0 0 420px;
    perspective: 1000px;
    z-index: 5;
    margin-right: var(--space-lg);
}

/* Glassmorphism Banned Card */
.banned-glass-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 60, 60, 0.05);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banned-glass-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    border-color: rgba(255, 60, 60, 0.3);
}

.card-header-premium {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-orb {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #000 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: none;
}

.card-header-premium h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.card-header-premium p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.banned-table-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.premium-banned-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-banned-table th {
    text-align: left;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    padding: 10px;
    letter-spacing: 1px;
}

.premium-banned-table td {
    padding: 12px 10px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cid-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: #888;
    font-family: monospace;
}

.char-portrait-mini {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.char-portrait-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.premium-banned-table .char-name {
    color: #eee;
    font-weight: 600;
}

.card-footer-premium {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    font-weight: 800;
}

.card-footer-premium i {
    color: var(--primary-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-color-hover);
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.stat-info h3 {
    font-size: var(--text-xs);
    font-weight: var(--font-extrabold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.stat-value small {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-muted);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--primary-red);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 12px;
    background: var(--primary-red-light);
    border: 1px solid var(--primary-red);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-extrabold);
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success-green);
}

/* ========== CTA Cards ========== */

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.cta-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Removed CTA radial light */

.cta-card:hover::before {
    transform: scale(1.2);
}

.cta-card:hover {
    transform: translateY(-10px);
}

.cta-card.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cta-card.purple:hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
}

.cta-card.pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 40px rgba(240, 147, 251, 0.3);
}

.cta-card.pink:hover {
    box-shadow: 0 20px 60px rgba(240, 147, 251, 0.5);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    margin-bottom: var(--space-md);
}

.cta-icon {
    font-size: var(--text-2xl);
    color: white;
}

.cta-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: white;
    margin-bottom: var(--space-xs);
}

.cta-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
}

.cta-action {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
}

/* ========== Section Headers ========== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--divider-color);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: var(--space-xs) 0 0;
}

.section-link {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.section-link:hover {
    color: var(--primary-red);
}

/* ========== News Grid ========== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.news-content {
    padding: var(--space-lg);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.news-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.news-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-md);
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--divider-color);
}

.news-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.news-read-more {
    color: var(--primary-red);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ========== Banned List Card ========== */
.banned-list-card {
    min-width: 400px;
}

.banned-table-wrapper {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) transparent;
}

.banned-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.banned-mini-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    position: sticky;
    top: 0;
}

.banned-mini-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.banned-mini-table tr:hover td {
    background: rgba(255, 60, 60, 0.03);
    color: #fff;
}

.banned-mini-table .char-name {
    color: #fff;
    font-weight: 700;
}

.status-pill {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.status-banned {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========== Responsive Design ========== */

@media (max-width: 992px) {
    .hero-main-cols {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-wrapper {
        padding-top: 40px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-side-panel {
        flex: 1;
        width: 100%;
        max-width: 450px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        margin-top: -60px;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-dashboard {
        margin-top: var(--space-xl);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: var(--space-lg);
    }

    .stat-value {
        font-size: var(--text-3xl);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
}