/* ==========================================
   TYUTORAI 2.0 — PREMIUM THEME
   Asosiy portal: oq dizayn
   Today: alohida ko‘k dizayn
========================================== */

:root {
    --ink: #172b3a;
    --muted: #71808c;
    --accent: #17617a;
    --accent-light: #2586a0;
    --portal-bg: #f5f7f9;
    --card-bg: #ffffff;
    --border-color: #e3e9ed;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
}

/* Eski global fon effektlarini bekor qilish */
body::before,
body::after {
    content: none !important;
    display: none !important;
}

/* ==========================================
   ASOSIY PORTAL — OQ DIZAYN
========================================== */

body.portal-body:not(:has(.today-page)) {
    background: #f5f7f9 !important;
    color: #172b3a !important;
}

.portal-body:not(:has(.today-page)) main,
.portal-body:not(:has(.today-page)) .home-section {
    color: #172b3a;
}

.portal-body:not(:has(.today-page)) h1,
.portal-body:not(:has(.today-page)) h2,
.portal-body:not(:has(.today-page)) h3 {
    color: #17364a;
}

.portal-body:not(:has(.today-page)) p {
    color: #71808c;
}

/* Asosiy sahifa kartalari */
.portal-body:not(:has(.today-page)) .home-card,
.portal-body:not(:has(.today-page)) .news-card,
.portal-body:not(:has(.today-page)) .contact-card,
.portal-body:not(:has(.today-page)) .login-panel,
.portal-body:not(:has(.today-page)) .dashboard-welcome {
    background: #ffffff;
    color: #172b3a;
    border: 1px solid #e3e9ed;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(20, 48, 65, .06);
}

.portal-body:not(:has(.today-page)) .home-card h3,
.portal-body:not(:has(.today-page)) .news-card h3,
.portal-body:not(:has(.today-page)) .contact-card h3 {
    color: #17364a;
}

.portal-body:not(:has(.today-page)) .home-card p,
.portal-body:not(:has(.today-page)) .news-card p,
.portal-body:not(:has(.today-page)) .contact-card p {
    color: #71808c;
}

.portal-body:not(:has(.today-page)) a {
    color: #176f8a;
}

.portal-body:not(:has(.today-page)) button,
.portal-body:not(:has(.today-page)) .home-btn {
    background: #176f8a;
    color: #ffffff;
    border: 0;
    border-radius: 9px;
}

/* ==========================================
   TODAY — KO‘K GLASS DIZAYN
========================================== */

body.portal-body:has(.today-page) {
    background:
        radial-gradient(ellipse at 15% 15%, #1267c9 0, transparent 38%),
        radial-gradient(ellipse at 85% 35%, #087fe9 0, transparent 35%),
        radial-gradient(ellipse at 50% 90%, #123b83 0, transparent 45%),
        linear-gradient(135deg, #06152f, #092b5b 55%, #03132e) !important;
    background-attachment: fixed;
    color: #f5f9ff;
}

.today-page {
    --blue: #2585ff;
    --blue-light: #64b5ff;
    --glass: rgba(255, 255, 255, .10);
    --glass-border: rgba(255, 255, 255, .19);
    --white: #f5f9ff;

    width: min(1250px, calc(100% - 36px));
    margin: 35px auto 65px;
    color: var(--white);
    font-family: inherit;
}

.today-page * {
    box-sizing: border-box;
}

.today-page h1,
.today-page h2,
.today-page p {
    margin-top: 0;
}

.today-page button {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    padding: 11px 17px;
    color: white;
    background: linear-gradient(135deg, #1684ff, #0755d9);
    font: inherit;
    font-weight: 650;
    box-shadow: 0 7px 22px rgba(0, 100, 255, .25);
    transition: .2s ease;
}

.today-page button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 130, 255, .4);
}

/* Today hero */

.today-page .blue-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    min-height: 250px;
    padding: 35px 42px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
    border-radius: 27px;
    background:
        radial-gradient(circle at 85% 20%, rgba(72, 165, 255, .35), transparent 35%),
        linear-gradient(120deg, rgba(10, 55, 115, .83), rgba(42, 135, 255, .24));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .25);
}

.today-page .eyebrow {
    color: #8bc7ff;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 800;
}

.today-page .hero-info h1 {
    font-size: clamp(30px, 5vw, 48px);
    margin: 12px 0;
    color: white;
}

.today-page .hero-info p {
    color: #c6ddff;
    margin-bottom: 13px;
}

.today-page .hero-clock {
    font-size: clamp(38px, 7vw, 65px);
    font-weight: 750;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 0 28px rgba(94, 174, 255, .55);
}

.today-page #today-quote {
    color: #b9d9ff;
    font-size: 14px;
}

.today-page .hero-date {
    min-width: 155px;
    text-align: center;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
}

.today-page .hero-date span,
.today-page .hero-date small {
    display: block;
    color: #c6ddff;
}

.today-page .hero-date strong {
    display: block;
    font-size: 65px;
    line-height: 1.2;
    color: white;
}

/* Today weather */

.today-page .weather-glass {
    position: relative;
    overflow: hidden;
    padding: 27px;
    margin-bottom: 25px;
    border: 1px solid rgba(151, 204, 255, .35);
    border-radius: 26px;
    background:
        radial-gradient(circle at 15% 20%, rgba(45, 145, 255, .32), transparent 40%),
        linear-gradient(120deg, rgba(2, 18, 47, .94), rgba(12, 66, 133, .78));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .27);
}

.today-page .weather-main {
    display: flex;
    align-items: center;
    gap: 23px;
}

.today-page .weather-main > span {
    font-size: 65px;
}

.today-page .weather-main h2 {
    font-size: 48px;
    margin-bottom: 3px;
    color: white;
}

.today-page .weather-main p {
    margin-bottom: 5px;
    color: #d5e8ff;
}

.today-page .weather-main small {
    color: #8fc6ff;
}

.today-page .weather-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.today-page .weather-details div {
    flex: 1;
    min-width: 120px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #c9e1ff;
}

.today-page .weather-details b {
    display: block;
    margin-top: 5px;
    color: white;
    font-size: 18px;
}

.today-page .weather-forecast {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.today-page .weather-forecast > div {
    padding: 15px;
    text-align: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    color: white;
}

.today-page .weather-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: #c5ddff;
    font-size: 13px;
}

.today-page #weather-status {
    display: block;
    margin-top: 12px;
    color: #a8d1ff;
}

/* Today cards */

.today-page .today-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
}

.today-page .blue-card {
    min-width: 0;
    padding: 23px;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .17);
    transition: .25s ease;
}

.today-page .blue-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 190, 255, .55);
    background: rgba(255, 255, 255, .14);
}

.today-page .blue-card h2 {
    font-size: 19px;
    margin-bottom: 15px;
    color: white;
}

.today-page .blue-card p,
.today-page .blue-card div {
    color: #d9eaff;
    line-height: 1.65;
}

.today-page .card-note {
    color: #8fc6ff !important;
    font-size: 13px;
}

.today-page .blue-card button {
    margin-top: 13px;
}

.today-page #useful-world-info,
.today-page #important-countdowns,
.today-page #uz-history,
.today-page #today-favorites {
    display: grid;
    gap: 10px;
}

.today-page #useful-world-info > *,
.today-page #important-countdowns > *,
.today-page #uz-history > *,
.today-page #today-favorites > * {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .09);
}

.today-page #quiz-options {
    display: grid;
    gap: 9px;
}

.today-page #quiz-options button {
    width: 100%;
    margin: 0;
    text-align: left;
    background: rgba(255, 255, 255, .10);
    box-shadow: none;
}

.today-page #quiz-options button:hover {
    background: rgba(32, 132, 255, .55);
}

.today-page #quiz-result {
    font-weight: 700;
    color: #8dd5ff;
}

.today-page .moon-info {
    display: flex;
    align-items: center;
    gap: 17px;
}

.today-page #moon-icon {
    font-size: 43px;
}

/* Today share */

.today-page .share-panel {
    margin-top: 23px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--glass-border);
    border-radius: 23px;
    background: linear-gradient(110deg, rgba(15, 91, 183, .48), rgba(255, 255, 255, .09));
    backdrop-filter: blur(20px);
}

.today-page .share-panel h2 {
    color: white;
}

.today-page .share-panel p,
.today-page #share-status {
    color: #c6ddff;
}

/* Today footer */

body:has(.today-page) .portal-footer {
    color: #d5e8ff;
    background: rgba(3, 19, 45, .85);
    border-top: 1px solid rgba(255, 255, 255, .13);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {
    .today-page .today-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .today-page .blue-hero {
        padding: 27px;
    }
}

@media (max-width: 600px) {
    .today-page {
        width: calc(100% - 22px);
        margin: 20px auto 40px;
    }

    .today-page .blue-hero {
        min-height: auto;
        padding: 23px;
        border-radius: 20px;
    }

    .today-page .hero-date {
        min-width: 95px;
        padding: 12px;
    }

    .today-page .hero-date strong {
        font-size: 43px;
    }

    .today-page .hero-clock {
        font-size: 37px;
    }

    .today-page .today-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .today-page .blue-card {
        padding: 19px;
    }

    .today-page .weather-glass {
        padding: 20px;
    }

    .today-page .weather-main > span {
        font-size: 48px;
    }

    .today-page .weather-main h2 {
        font-size: 37px;
    }

    .today-page .weather-forecast {
        gap: 7px;
    }

    .today-page .weather-forecast > div {
        padding: 10px 5px;
        font-size: 12px;
    }

    .today-page .weather-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .today-page *,
    .today-page *::before,
    .today-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
/* =================================
   TYUTORAI 2.0 — PREMIUM EFFECTS
================================= */

:root {
    --turquoise-glow: rgba(20, 184, 166, .22);
}

/* Sahifa elementlari paydo bo‘lishi */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Kartochkalar */

.home-card,
.news-card,
.info-box,
.contact-item {
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.home-card:hover,
.news-card:hover,
.info-box:hover,
.contact-item:hover {
    transform: translateY(-7px);
    border-color: #5eead4;
    box-shadow: 0 18px 45px var(--turquoise-glow);
}

/* Hero yorug‘lik effekti */

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255,255,255,.08) 50%,
        transparent 65%
    );
    transform: translateX(-100%);
    animation: heroLight 8s ease-in-out infinite;
}

@keyframes heroLight {
    0%, 55% { transform: translateX(-100%); }
    85%, 100% { transform: translateX(100%); }
}

/* Statistik raqam */

.info-number {
    text-shadow: 0 5px 20px rgba(20,184,166,.2);
    transition: .3s;
}

.info-box:hover .info-number {
    transform: scale(1.05);
}

/* Tugmalar */

.hero-btn,
.intro-enter {
    transition: all .3s ease;
}

.hero-btn:active,
.intro-enter:active {
    transform: scale(.96);
}

/* Mobil qurilma */

@media (max-width: 600px) {
    .home-container {
        width: 94%;
    }

    .home-card {
        min-height: 155px;
    }

    .home-section {
        margin: 30px auto;
    }

    .hero-actions .hero-btn {
        width: 100%;
    }

    .language-area select {
        width: 100%;
    }
}

/* Animatsiyani kamaytirishni xohlaganlar uchun */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}