/* =========================================
   ULYTAU TV — IDEAL BEAUTY OVERRIDE
   Қосымша стильдер: палитра, типография, анимация
   ========================================= */

/* --- Идеал палитра және ритм --- */
:root {
    --primary-glow: rgba(0, 229, 255, 0.35);
    --secondary-glow: rgba(112, 0, 255, 0.25);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-primary: 0 0 40px var(--primary-glow);
    --radius-card: 20px;
    --radius-card-big: 28px;
    --space-section: clamp(60px, 10vw, 100px);
}

/* Таңдалған мәтін */
::selection {
    background: var(--primary);
    color: #000;
}

/* Skip link — доступность */
.skip-link {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    z-index: 10000;
    transition: top 0.3s var(--ease-out-expo);
}
.skip-link:focus {
    top: 20px;
    outline: 2px solid white;
    outline-offset: 3px;
}

/* LIVE батырмасы button ретінде — стиль сақталады */
button.header-live-btn {
    font-family: inherit;
    cursor: pointer;
    appearance: none;
}

/* Дене — жеңіл градиент тереңдік үшін */
body {
    background-image: 
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(0, 229, 255, 0.06), transparent),
        radial-gradient(ellipse 80% 50% at 80% 50%, rgba(112, 0, 255, 0.04), transparent);
    background-attachment: fixed;
}

/* --- HEADER идеал --- */
#main-header {
    padding: 18px 5%;
}
#main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.logo a {
    letter-spacing: -0.02em;
    transition: opacity 0.3s var(--ease-out-expo);
}
.logo a:hover {
    opacity: 0.95;
}
.nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.nav-link::after {
    border-radius: 1px;
}

/* LIVE батырмасы — жақсартылған */
.header-live-btn {
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(255, 0, 76, 0.4);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.header-live-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 0, 76, 0.4);
}
.header-live-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* --- СЕКЦИЯ тақырыптары --- */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    margin-bottom: clamp(32px, 5vw, 48px);
}
.section-title i {
    opacity: 0.95;
}

/* --- СЛАЙДЕР (KP) контент --- */
.kp-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 0.95;
}
.kp-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}
.btn-primary {
    border-radius: 12px;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--primary-glow);
}
.btn-primary:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}
.btn-glass {
    border-radius: 14px;
    transition: transform 0.3s var(--ease-out-expo), background 0.3s ease;
}
.btn-glass:hover {
    transform: translateY(-2px);
}

/* --- КАРТОЧКАЛАР (жаңалық) --- */
.news {
    padding: var(--space-section) 5%;
}
.bento-grid {
    gap: clamp(16px, 2.5vw, 28px);
    grid-template-rows: repeat(2, minmax(260px, 320px));
}
.news-card {
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-card);
}
.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(112, 0, 255, 0.3);
}
.news-card.span-2.row-2 {
    border-radius: var(--radius-card-big);
}
.news-bg {
    transition: transform 0.8s var(--ease-out-expo), opacity 0.5s ease;
}
.news-info {
    padding: clamp(20px, 3vw, 32px);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent);
}
.news-title {
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.news-card.span-2 .news-title {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}
.news-cat {
    letter-spacing: 0.08em;
}

/* --- ЖОБАЛАР (проект карточкалары) --- */
.projects {
    padding: var(--space-section) 5%;
}
.project-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-card);
}
.project-card:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.25);
}
.project-info {
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent 70%);
    transition: transform 0.4s var(--ease-out-expo);
}
.play-icon {
    transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}

/* --- КЕСТЕ / EPG --- */
.schedule {
    padding: var(--space-section) 5%;
}
.time-card {
    border-radius: var(--radius-card);
    transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.4s ease;
}
.time-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* --- APP СЕКЦИЯСЫ --- */
.app-section {
    padding: var(--space-section) 5%;
}
.app-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
}
.mockup {
    border-radius: 48px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.5s var(--ease-out-expo);
}
.app-section:hover .mockup {
    transform: rotate(-4deg) translateY(-8px);
}
.glow-circle {
    opacity: 0.18;
    filter: blur(140px);
}

/* --- ТАРАЛУ АЙМАҒЫ (инфографика) --- */
.coverage-section {
    padding: var(--space-section) 5%;
}
.info-card {
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-card);
}
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 229, 255, 0.2);
}
.card-header {
    padding: 22px 24px;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}
.badge {
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.app-btn {
    border-radius: 12px;
    transition: transform 0.3s var(--ease-out-expo), background 0.3s ease, box-shadow 0.3s ease;
}
.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

/* --- TICKER --- */
.ticker-wrap {
    border-radius: 0;
    box-shadow: 0 -8px 32px rgba(255, 0, 76, 0.2);
}
.ticker-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

/* --- FOOTER идеал --- */
footer {
    padding: clamp(60px, 10vw, 100px) 5% clamp(80px, 12vw, 120px);
    position: relative;
    background: linear-gradient(to top, #000 0%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.5;
}
.footer-logo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
footer p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- BACK TO TOP --- */
.back-to-top {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    bottom: 56px;
    right: clamp(20px, 4vw, 32px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s var(--ease-spring), opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 28px var(--primary-glow);
}
.back-to-top.visible {
    animation: fadeInUp 0.4s var(--ease-out-expo) forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- REVEAL анимациялары --- */
.reveal {
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal-left {
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

/* Азырақ қозғалыс қалайтындар үшін */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .news-card,
    .project-card,
    .info-card,
    .time-card,
    .btn-primary,
    .btn-glass,
    .header-live-btn,
    .back-to-top,
    .mockup,
    .app-btn {
        transition-duration: 0.01ms !important;
    }
    .news-card:hover,
    .project-card:hover {
        transform: none;
    }
}

/* --- Мобильді идеал --- */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-rows: auto auto;
    }
    .news-card.row-2 {
        min-height: 280px;
    }
}
@media (max-width: 768px) {
    .news-card:hover {
        transform: translateY(-6px);
    }
    .section-title {
        margin-bottom: 28px;
    }
}
@media (max-width: 600px) {
    .app-section .btn-primary {
        width: auto;
        min-width: 140px;
    }
    footer::before {
        width: 95%;
    }
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out-expo), opacity 0.2s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface, #121212);
    z-index: 1050;
    transition: right 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}
.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}
.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    color: #ccc;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}
.mobile-nav-link i {
    font-size: 1.3rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}
.mobile-menu-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    #mainNav {
        display: none;
    }
}

/* ========== FOOTER GRID ========== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.footer-brand { }
.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-links a {
    display: block;
    color: #888;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-socials {
    display: flex;
    gap: 16px;
}
.footer-socials a {
    color: #888;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s var(--ease-spring);
}
.footer-socials a:hover {
    color: var(--primary);
    transform: scale(1.2);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
}

/* ========== WEATHER STRIP ========== */
.weather-strip {
    padding: 16px 5%;
    background: var(--surface);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.weather-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.weather-city {
    font-weight: 700; font-size: 1rem; color: white;
    display: flex; align-items: center; gap: 6px;
}
.weather-city i { color: var(--primary); }
.weather-data {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.weather-temp {
    font-size: 1.6rem; font-weight: 800; color: white;
}
.weather-desc {
    color: var(--text-muted); font-size: 0.95rem; text-transform: capitalize;
}
.weather-detail {
    display: flex; align-items: center; gap: 5px; color: #888; font-size: 0.85rem;
}
.weather-detail i { color: var(--primary); font-size: 1rem; }
.weather-icon {
    width: 48px; height: 48px;
}
@media (max-width: 600px) {
    .weather-inner { justify-content: flex-start; gap: 12px; }
    .weather-temp { font-size: 1.3rem; }
}

/* Ұлытау облысы — барлық қала/аудан ауа райы */
.weather-regions-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.weather-regions-title {
    font-weight: 700; font-size: 1rem; color: white;
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.weather-regions-title i { color: var(--primary); }
.weather-regions-list {
    display: flex; align-items: center; gap: 12px;
    overflow-x: auto; overflow-y: hidden;
    padding: 4px 0;
    scrollbar-width: thin;
    flex: 1; min-width: 0;
}
.weather-region-card {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.weather-region-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
}
.weather-region-name {
    font-weight: 600; font-size: 0.9rem; color: white;
}
.weather-region-icon {
    width: 28px; height: 28px;
}
.weather-region-temp {
    font-size: 1.1rem; font-weight: 800; color: var(--primary);
}
.weather-region-fail {
    color: var(--text-muted); font-size: 0.9rem;
}
@media (max-width: 600px) {
    .weather-regions-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .weather-regions-list { width: 100%; }
}

/* ========== FONT SIZE A-/A+ ========== */
.font-controls {
    display: flex; align-items: center; gap: 4px;
}
.font-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: white; font-weight: 800; font-size: 0.8rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}
.font-btn:hover { background: var(--primary); color: #000; transform: scale(1.1); }

/* ========== PRINT ========== */
@media print {
    header, footer, .ticker-wrap, .back-to-top, .hamburger,
    .mobile-menu, .mobile-menu-overlay, .kp-slider-wrapper,
    .ad-container, .weather-strip, .app-section, .share-section,
    .kp-arrow, .kp-pagination, .header-live-btn, .font-controls,
    .btn-primary, .btn-glass, #videoModal, #preloader, .skip-link {
        display: none !important;
    }
    body {
        background: white !important;
        color: #222 !important;
        font-size: 12pt;
    }
    .full-story-container, .news-card, .form-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: white !important;
    }
    a { color: #222 !important; }
    img { max-width: 100% !important; }
    .content-text { font-size: 11pt; line-height: 1.6; }
}

/* ========== TEAM SECTION ========== */
.team-section {
    padding: var(--space-section) 5%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--surface) 50%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
.team-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.4;
}
.team-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    margin-top: -24px;
    margin-bottom: 48px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.team-card {
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease, border-color 0.3s ease;
    position: relative;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.15);
}
.team-card--lead {
    border-color: rgba(0, 229, 255, 0.12);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.04), var(--surface-light));
}
.team-card--lead:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.08);
}
.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0a0a0a;
    position: relative;
}
.team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 40%);
    pointer-events: none;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}
.team-card:hover .team-photo img {
    transform: scale(1.06);
}
.team-info {
    padding: 18px 16px 22px;
}
.team-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 6px;
    line-height: 1.3;
}
.team-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.team-role--accent {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 18px;
    }
}
@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .team-info {
        padding: 14px 12px 18px;
    }
    .team-info h3 {
        font-size: 0.9rem;
    }
}
