/* ============================================================
   Стили KiberMediaANO-FM
   ============================================================ */

/* --- Переменные --- */
:root {
    --primary: #6f42c1;
    --primary-dark: #553098;
    --primary-light: #8b5cf6;
    --accent: #ff6b35;
    --accent-hover: #e55a2b;
    --dark: #f0f2f5;
    --darker: #ffffff;
    --card-bg: #ffffff;
    --text-light: #212529;
    --text-muted: #6c757d;
    --gradient-1: linear-gradient(135deg, #6f42c1, #e83e8c);
    --gradient-2: linear-gradient(135deg, #f0f2f5, #e2e6ea);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
}

/* --- Общие стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

a {
    color: var(--primary-light);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent);
}

/* --- Навигация --- */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%) !important;
    border-bottom: 1px solid rgba(111, 66, 193, 0.15);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.brand-icon {
    color: var(--accent);
    font-size: 1.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s;
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.nav-link:hover {
    background: rgba(111, 66, 193, 0.1);
    color: var(--primary) !important;
}

.nav-link.active {
    background: var(--gradient-1);
    color: #fff !important;
}

/* --- Герой-секция (Hero) --- */
.hero-section {
    background: var(--gradient-2);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(111,66,193,0.06) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* --- Плеер --- */
.player-section {
    background: #ffffff;
    border: 1px solid rgba(111, 66, 193, 0.15);
    border-radius: var(--radius);
    padding: 30px;
    margin: -40px 0 40px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
}

.player-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.player-status.online {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.player-status.offline {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

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

.status-dot.online {
    background: #28a745;
    animation: pulse 1.5s infinite;
}

.status-dot.offline {
    background: #dc3545;
}

.player-btn {
    background: var(--gradient-1);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.player-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(111, 66, 193, 0.5);
}

.player-btn.playing {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.stream-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.stream-links a:hover {
    background: rgba(111, 66, 193, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Карточки --- */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    transition: all 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(111, 66, 193, 0.2);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    color: var(--text-light);
}

.card-text {
    color: var(--text-muted);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- Кнопки --- */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(111, 66, 193, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 50px;
}

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

.btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* --- Формы --- */
.form-control, .form-select {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

/* --- Расписание --- */
.schedule-card {
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.02);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all 0.3s;
}

.schedule-card:hover {
    background: rgba(111, 66, 193, 0.06);
}

.schedule-time {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.schedule-day {
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Статистика --- */
.stat-card {
    text-align: center;
    padding: 25px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* --- Секции --- */
.section-title {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    margin-top: 8px;
}

/* --- Подвал --- */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%) !important;
    border-top: 1px solid rgba(111, 66, 193, 0.15);
}

.footer a:hover {
    color: var(--accent) !important;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .player-section {
        margin: -20px 10px 30px;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* --- Анимации --- */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* --- Спиннер загрузки плеера --- */
.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

/* --- Бейджи --- */
.badge-primary {
    background: var(--gradient-1);
}

/* --- Модальные окна --- */
.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
}

.btn-close {
    filter: none;
    opacity: 0.6;
}

/* --- Таблицы в админке --- */
.table {
    color: var(--text-light);
}

.table thead th {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.table td {
    border-color: rgba(0,0,0,0.06);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(111, 66, 193, 0.06);
    color: var(--text-light);
}

/* --- Скроллбар --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}