/*
Theme Name: Богучанский Спорт - Молодежная версия
Theme URI: http://boguchanysport.ru
Author: Ваше Имя
Author URI: http://boguchanysport.ru
Description: Спортивный портал Богучанского района - современный молодежный дизайн
Version: 3.0.0
License: GPL v2 or later
Text Domain: boguchany-sport
*/

/* ===== ПОДКЛЮЧЕНИЕ СОВРЕМЕННЫХ ШРИФТОВ ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== ПЕРЕМЕННЫЕ ЦВЕТОВ - МОЛОДЕЖНАЯ ПАЛИТРА ===== */
:root {
    /* Основные цвета - яркие и сочные */
    --primary: #6C3CE1;
    --primary-light: #8B5CF6;
    --primary-dark: #5B21B6;
    --secondary: #FF6B6B;
    --accent: #06D6A0;
    --accent2: #FFD93D;
    --accent3: #4ECDC4;
    --pink: #FF6B9D;
    --orange: #FF8A5C;
    --blue: #4A9EFF;
    
    /* Градиенты */
    --gradient-main: linear-gradient(135deg, #6C3CE1 0%, #FF6B6B 100%);
    --gradient-secondary: linear-gradient(135deg, #06D6A0 0%, #FFD93D 100%);
    --gradient-accent: linear-gradient(135deg, #6C3CE1 0%, #4ECDC4 100%);
    
    /* Фоны */
    --bg-primary: rgba(255, 255, 255, 0.08);
    --bg-secondary: rgba(245, 243, 255, 0.05);
    --bg-dark: #1a0533;
    --bg-card: rgba(255, 255, 255, 0.12);
    --bg-glass: rgba(255, 255, 255, 0.08);
    
    /* Текст */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Тени */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(108, 60, 225, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Границы */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Скругления */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Переходы */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== ТЕМНАЯ ТЕМА ===== */
[data-theme="dark"] {
    --bg-primary: rgba(10, 6, 24, 0.6);
    --bg-secondary: rgba(17, 8, 43, 0.4);
    --bg-card: rgba(26, 10, 58, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.4);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.05);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: 
        linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 30, 0.7) 100%),
        url('//boguchanysport.ru/wp-content/uploads/2026/08/fon.jpg') center/cover no-repeat fixed;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.sport-tile {
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.sport-tile:hover {
    border-color: #06D6A0;
    background: rgba(6, 214, 160, 0.1);
}

.btn-hero {
    background: linear-gradient(135deg, #06D6A0, #4ECDC4);
    color: #fff;
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.2);
}

.btn-hero:hover {
    box-shadow: 0 15px 40px rgba(6, 214, 160, 0.4);
}

.news-card,
.forum-widget {
    background: rgba(20, 20, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
/* ===== ШАПКА ===== */
.site-header {
    background: rgba(26, 5, 51, 0.92);
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
    padding: 8px 0;
    background: rgba(26, 5, 51, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .site-header {
    background: rgba(10, 6, 24, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 45px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-badge {
    display: inline-block;
    background: var(--gradient-secondary);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 700;
    color: #1a0533;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ГЛАВНОЕ МЕНЮ ===== */
.main-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    position: relative;
}

.main-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.main-menu a::after {
    display: none;
}

/* Кнопка форума в меню */
.forum-link {
    background: var(--gradient-main) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.forum-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 60, 225, 0.4);
}

/* Кнопка переключения темы */
.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    width: 52px;
    height: 32px;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle .toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.theme-toggle .toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle .toggle-thumb {
    left: 26px;
    background: var(--gradient-main);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    font-size: 0.8rem;
    z-index: 1;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== ГЕРОЙ-СЕКЦИЯ (прозрачная) ===== */
.hero {
    
    padding: 120px 20px 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
    
    display: flex;
    align-items: center;
 
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero::before,
.hero::after,
.hero-shapes {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    letter-spacing: -1.5px;
}

.hero h1 .highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--gradient-secondary);
    color: #1a0533;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.3);
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(6, 214, 160, 0.4);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== КОМПАКТНЫЕ ПЛИТКИ ===== */
.sports-grid {
    max-width: 1200px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.sports-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.sport-tile {
    display: block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 10px;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sport-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: var(--transition);
}

.sport-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.sport-tile:hover::before {
    opacity: 1;
}

.sport-tile .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.sport-tile .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* ===== СТАТИСТИКА ===== */
.stats-section {
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 5px;
}

/* ===== НОВОСТИ ===== */
.news-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 60px 20px;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.news-header p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.news-card .date {
    color: var(--accent2);
    font-size: 0.8rem;
    font-weight: 600;
}

.news-card h4 {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.news-card h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.news-card h4 a:hover {
    color: var(--accent2);
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== ВИДЖЕТ ФОРУМА ===== */
.forum-widget {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.forum-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-widget h3 i {
    color: var(--accent2);
}

.forum-widget .btn-forum {
    display: inline-block;
    padding: 8px 25px;
    background: var(--gradient-main);
    color: #fff;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.forum-widget .btn-forum:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(108, 60, 225, 0.3);
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: rgba(26, 5, 51, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 50px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-container h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent2);
}

.footer-container p,
.footer-container a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-container a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ===== СТИЛИ ДЛЯ ПОСТОВ С ФОРУМА ===== */
.post-content blockquote {
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--primary-light);
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content .codebox {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 15px 0;
}

.post-content .codebox code {
    color: #4ECDC4;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: var(--shadow);
}

.post-content ul,
.post-content ol {
    margin: 10px 0 10px 25px;
    color: var(--text-primary);
}

.post-content li {
    margin: 5px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.post-content table th,
.post-content table td {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content table th {
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
}

.post-content img.smilies {
    width: auto;
    height: auto;
    max-width: 20px;
    max-height: 20px;
    margin: 0 2px;
}

.post-content a {
    color: var(--accent2);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent2);
    transition: var(--transition);
}

.post-content a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* ===== АНИМАЦИИ ===== */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(3deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero { padding: 80px 20px 60px; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 5, 51, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu a {
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: 400px;
        padding: 80px 20px 60px;
        margin-top: 65px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .sports-grid-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .sport-tile {
        padding: 15px 8px;
    }

    .sport-tile .icon {
        font-size: 1.5rem;
    }

    .sport-tile .name {
        font-size: 0.75rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .theme-toggle {
        width: 44px;
        height: 28px;
    }

    .theme-toggle .toggle-thumb {
        width: 20px;
        height: 20px;
    }

    [data-theme="dark"] .theme-toggle .toggle-thumb {
        left: 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sports-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 320px;
        padding: 60px 15px 40px;
    }

    .forum-widget {
        padding: 20px;
    }

    .news-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ТРЕХКОЛОНОЧНОГО МАКЕТА ===== */
@media (max-width: 992px) {
    .news-section > div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    .news-section > div[style*="display: flex"] aside {
        flex: 1 1 100% !important;
        order: 2;
    }
    .news-section > div[style*="display: flex"] main {
        flex: 1 1 100% !important;
        order: 1;
    }
    .news-section > div[style*="display: flex"] aside:last-child {
        order: 3;
    }
}

/* Стили для виджетов на главной */
.frontpage-widget-left,
.frontpage-widget-right {
    transition: var(--transition);
}

.frontpage-widget-left:hover,
.frontpage-widget-right:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}