/*
Theme Name: Character Track — New Design
Theme URI: https://charactertrack.com
Author: Character Track
Author URI: https://charactertrack.com
Description: Modern, colorful, minimalistic design for quiz platform
Version: 2.0
License: GPLv2 or later
Text Domain: charactertrack
*/

/* ============================================
   ROOT VARIABLES — НОВАЯ ЦВЕТОВАЯ СХЕМА
   ============================================ */
:root {
    /* Основные цвета — яркие, сочные */
    --primary:       #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark:  #4834D4;

    --secondary:     #00CEC9;
    --secondary-light: #55EFC4;

    --accent-1:      #FD79A8;
    --accent-2:      #FDCB6E;
    --accent-3:      #F39C12;
    --accent-4:      #00B894;

    /* Нейтральные */
    --dark:          #2D3436;
    --mid:           #636E72;
    --light:         #B2BEC3;
    --border:        #DFE6E9;
    --bg:            #F8F9FA;
    --surface:       #FFFFFF;

    /* Градиенты */
    --gradient-main: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 50%, #00CEC9 100%);
    --gradient-warm: linear-gradient(135deg, #FD79A8 0%, #FDCB6E 100%);
    --gradient-cool: linear-gradient(135deg, #00CEC9 0%, #55EFC4 100%);
    --gradient-deep: linear-gradient(135deg, #6C5CE7 0%, #4834D4 100%);

    /* Остальное */
    --radius:        16px;
    --radius-sm:     8px;
    --shadow-sm:     0 2px 8px rgba(108, 92, 231, 0.10);
    --shadow-md:     0 8px 30px rgba(108, 92, 231, 0.15);
    --shadow-lg:     0 20px 60px rgba(108, 92, 231, 0.20);
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container:     1200px;
}

/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== УТИЛИТЫ ===== */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: var(--gradient-main);
}

.gradient-bg-warm {
    background: var(--gradient-warm);
}

.gradient-bg-cool {
    background: var(--gradient-cool);
}

/* ===== КНОПКИ ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.10);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Навигация */
.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--mid);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: var(--gradient-warm);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(80px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: var(--gradient-cool);
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(108, 92, 231, 0.10);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--mid);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-chip {
    padding: 8px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--mid);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-purple { background: #6C5CE7; }
.dot-pink { background: #FD79A8; }
.dot-green { background: #00B894; }
.dot-yellow { background: #FDCB6E; }
.dot-orange { background: #F39C12; }

/* ============================================
   FEATURES GRID — КВИЗЫ
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.quiz-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    border: 1px solid var(--border);
    position: relative;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
}

.quiz-card:nth-child(2)::before {
    background: var(--gradient-warm);
}

.quiz-card:nth-child(3)::before {
    background: var(--gradient-cool);
}

.quiz-card:nth-child(4)::before {
    background: linear-gradient(135deg, #FDCB6E 0%, #F39C12 100%);
}

.quiz-card:nth-child(5)::before {
    background: linear-gradient(135deg, #00B894 0%, #55EFC4 100%);
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.quiz-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.quiz-card-content {
    padding: 24px;
}

.quiz-card-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.08);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.quiz-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.quiz-card-excerpt {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.5;
    margin-bottom: 16px;
}

.quiz-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--light);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.quiz-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-arrow {
    margin-left: auto;
    color: var(--primary);
    transition: var(--transition);
}

.quiz-card:hover .card-arrow {
    transform: translateX(6px);
}

/* ============================================
   STATS / ABOUT
   ============================================ */
.about-stats {
    padding: 80px 20px;
    background: var(--gradient-main);
    border-radius: var(--radius);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.about-stats::after {
    content: '✦ ✦ ✦';
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.10);
    letter-spacing: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-info {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.contact-info-subtitle {
    color: var(--mid);
    margin-bottom: 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.contact-card:hover {
    background: rgba(108, 92, 231, 0.06);
    transform: translateY(-4px);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 1.5;
    fill: none;
}

.contact-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--dark);
}

.contact-card-value a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card-value a:hover {
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 4px solid transparent;
    border-image: var(--gradient-main);
    border-image-slice: 1;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--secondary);
}

.footer-contact div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--light);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--secondary);
}

.footer-contact a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

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

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-menu {
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}
/* ============================================
   BURGER MENU — Мобильная навигация
   ============================================ */

/* Кнопка бургера (скрыта на десктопе) */
.burger-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.burger-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 4px;
    transition: var(--transition);
    transform-origin: center;
}

/* Анимация бургера в крестик (при активном состоянии) */
.burger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-toggle.active span:nth-child(2) {
    opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Само меню (скрыто на десктопе, показывается на мобилках) */
.burger-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 30px 30px;
    z-index: 1000;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

.burger-menu.open {
    display: block;
}

/* ---------- БУРГЕР-МЕНЮ ---------- */
.burger-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;  /* выше, чем у бургер-меню */
    position: relative;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
    transition: all 0.3s ease;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
/* Анимация появления */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Список меню */
.burger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.burger-menu ul li {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.burger-menu ul li:last-child {
    border-bottom: none;
}

.burger-menu ul a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: 4px 0;
    transition: var(--transition);
}

.burger-menu ul a:hover {
    color: var(--primary);
    transform: translateX(6px);
}

/* Активная ссылка */
.burger-menu ul a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Иконки для пунктов меню (опционально) */
.burger-menu ul a .menu-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
}

/* Кнопка закрытия (если нужна отдельно) */
.burger-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.burger-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .burger-toggle {
        display: flex;
    }

    .nav-menu {
        display: none !important;
    }
}