/* Portal üzü. Yalnız görünüş. Menyunun mobil/masaüstü ayrımı header.php-də qalır. */

body {
    background-color: #e7edf5;
    background-image:
        radial-gradient(980px 460px at -6% -8%, rgba(29, 78, 216, 0.11), transparent 58%),
        radial-gradient(760px 380px at 108% -6%, rgba(196, 149, 74, 0.12), transparent 52%),
        linear-gradient(180deg, #f8fafc 0%, #e7edf5 320px);
}

[data-theme="dark"] body {
    background-color: #0b1120;
    background-image:
        radial-gradient(900px 420px at 0% -10%, rgba(59, 130, 246, 0.16), transparent 60%),
        radial-gradient(680px 340px at 100% 0%, rgba(228, 196, 138, 0.08), transparent 55%);
}

header.main-header {
    background-color: #101828;
    background-image: linear-gradient(90deg, #1d4ed8, #e4c48a 46%, #1d4ed8);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.16);
}

.logo-img { height: 32px; }

nav#mainNav ul li a {
    letter-spacing: 0.01em;
    border-radius: 999px;
}

.sidebar-left,
.sidebar-right,
.main-content {
    border-radius: 22px;
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04), 0 16px 40px rgba(16, 24, 40, 0.06);
}

[data-theme="dark"] .sidebar-left,
[data-theme="dark"] .sidebar-right,
[data-theme="dark"] .main-content {
    border-color: rgba(148, 163, 184, 0.16);
}

.container.container-grid {
    gap: 18px 20px;
    margin-top: 18px !important;
    margin-bottom: 28px !important;
}

.modern-section-header {
    padding: 18px 22px;
    border-radius: 18px;
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)) ,
        var(--bg-card);
}

.modern-section-header::before {
    width: 3px;
    background: linear-gradient(180deg, #1d4ed8 0%, #e4c48a 100%);
}

.msh-icon-wrap {
    border-radius: 12px;
    background: rgba(29, 78, 216, 0.08);
}

.msh-title {
    letter-spacing: -0.03em;
}

.sidebar-block-title {
    font-size: 11px;
    letter-spacing: 0.16em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.search-input-modern {
    height: 46px;
    border-radius: 12px;
    background: #f8fafc;
}

.search-btn-modern {
    height: 46px;
    margin-top: 12px;
    border-radius: 12px;
    background: #1d4ed8;
    letter-spacing: 0.02em;
}

.search-btn-modern:hover {
    background: #1e40af;
}

.smart-english-banner {
    border-radius: 20px;
    padding: 22px 18px 18px;
    background:
        radial-gradient(140px 90px at 100% 0%, rgba(228, 196, 138, 0.45), transparent 62%),
        linear-gradient(155deg, #121a2b 0%, #1e3a8a 78%);
    border: 1px solid rgba(228, 196, 138, 0.28);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.18);
}

[data-theme="dark"] .smart-english-banner {
    background:
        radial-gradient(140px 90px at 100% 0%, rgba(228, 196, 138, 0.22), transparent 62%),
        linear-gradient(155deg, #0b1220 0%, #172554 80%);
}

.smarte-top-badge {
    letter-spacing: 0.14em;
    background: rgba(228, 196, 138, 0.16);
    border-color: rgba(228, 196, 138, 0.35);
}

.btn-smarte {
    border-radius: 999px;
    color: #1e3a8a !important;
    padding: 8px 16px;
}

.article-grid-card {
    border-radius: 18px;
    border-color: rgba(15, 23, 42, 0.06);
}

.article-grid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 78, 216, 0.28);
}

.card-btn-action,
.page-btn {
    border-radius: 999px;
}

.home-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 64px 24px 56px;
}

.home-empty i {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 26px;
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
    border: 1px solid rgba(29, 78, 216, 0.12);
}

.home-empty p {
    margin: 0 0 6px;
    color: var(--text-heading);
    font-weight: 700;
    font-size: 16px;
}

.home-empty span {
    font-size: 13px;
}

.main-footer {
    padding: 42px 0 18px;
    border-top: 0;
    background-color: #0c1222;
    background-image: linear-gradient(90deg, #1d4ed8, #e4c48a 46%, #1d4ed8);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: left top;
}

.footer-container {
    max-width: 1180px;
    gap: 28px 40px;
    padding: 8px 28px 0;
}

.footer-column h4 {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-column h4::after {
    width: 28px;
    height: 2px;
    background: #e4c48a;
}

.footer-column ul li { margin-bottom: 10px; }

.footer-column ul li a {
    font-size: 14px;
}

.footer-column ul li a::before {
    content: none;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
}

/* Funny Engineering lobbisi */
.kahoot-banner {
    background:
        radial-gradient(420px 180px at 50% -20%, rgba(228, 196, 138, 0.28), transparent 60%),
        linear-gradient(160deg, #121a2b 0%, #1e3a8a 72%);
    border: 1px solid rgba(228, 196, 138, 0.28);
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(16, 24, 40, 0.18);
    padding: 56px 28px;
}

.kahoot-banner::before {
    animation: none;
    background: none;
}

.kahoot-banner .badge {
    background: rgba(228, 196, 138, 0.18) !important;
    color: #f8f1e3 !important;
    border: 1px solid rgba(228, 196, 138, 0.4);
    letter-spacing: 0.08em;
}

.kahoot-banner h1 {
    letter-spacing: -0.04em;
    text-shadow: none !important;
    font-size: 2.7rem !important;
}

.btn-join {
    background: #e4c48a;
    color: #1a1408;
    border-radius: 999px;
}

.btn-join:hover {
    background: #f3ddb0;
    color: #1a1408;
}

.btn-create {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.btn-create:hover {
    color: #1e3a8a;
}

.kahoot-banner ~ .row .card {
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05) !important;
}

@media (max-width: 600px) {
    .kahoot-banner h1 { font-size: 2rem !important; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
}

/* Başlıq zolağı: başlığın davamı, qalereya deyil */
.mast-band {
    background: #101828;
    color: #f8fafc;
    margin: 0 0 8px;
    border-bottom: 0;
    box-shadow: inset 0 -2px 0 #e4c48a;
}
.mast-stage {
    position: relative;
    height: 248px;
    overflow: hidden;
    background: #101828;
}
.mast-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
    text-decoration: none;
}
.mast-slide.is-on {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.mast-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92);
}
.mast-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(16, 24, 40, 0.18) 0%, rgba(16, 24, 40, 0.05) 38%, rgba(16, 24, 40, 0.62) 100%),
        linear-gradient(90deg, rgba(16, 24, 40, 0.35), transparent 18%, transparent 82%, rgba(16, 24, 40, 0.35));
}
.mast-label {
    position: absolute;
    left: 28px;
    bottom: 18px;
    z-index: 2;
    max-width: min(640px, 70%);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f8f1e3;
}
.mast-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.45);
    color: #fff;
    cursor: pointer;
}
.mast-prev { left: 16px; }
.mast-next { right: 16px; }
.mast-nav:hover { background: rgba(16, 24, 40, 0.75); color: #e4c48a; }
.mast-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 22px;
    background: #0c1222;
    letter-spacing: 0.12em;
}
.mast-count { font-weight: 700; font-size: 12px; color: #e4c48a; }
.mast-of { font-size: 12px; color: #94a3b8; }
.mast-dots { display: flex; gap: 6px; margin-left: 8px; }
.mast-dot {
    width: 18px;
    height: 2px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}
.mast-dot.is-on { background: #e4c48a; }
@media (max-width: 700px) {
    .mast-stage { height: 168px; }
    .mast-label { left: 16px; letter-spacing: 0.08em; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .mast-slide { transition: none; }
}
