/* Sezonų prisiminimų homepage – ant esamos mcUtopia paletės */

.seasons-home {
    min-height: 100vh;
    overflow-x: hidden;
}

.mem-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #070605;
}

.mem-bg-slide {
    position: absolute;
    inset: -2%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s var(--ease-out, ease), transform 8s ease;
    filter: saturate(0.92) brightness(0.72);
}

.mem-bg-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.mem-bg-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 6, 5, 0.55) 0%, rgba(7, 6, 5, 0.28) 35%, rgba(7, 6, 5, 0.72) 100%),
        radial-gradient(ellipse 80% 60% at 50% 30%, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
}

.mem-bg-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mem-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px clamp(18px, 4vw, 48px) 40px;
}

.mem-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(28px, 6vh, 56px);
}

.mem-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mem-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(143, 191, 159, 0.25));
}

.mem-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mem-brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.02em;
}

.mem-brand-tag {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream-muted);
}

.mem-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.mem-nav a {
    color: var(--cream-soft);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mem-nav a:hover {
    color: var(--cream);
    border-color: rgba(143, 191, 159, 0.45);
}

.mem-hero {
    max-width: 720px;
    margin-bottom: clamp(28px, 5vh, 48px);
    animation: memFadeUp 0.9s var(--ease-out, ease) both;
}

.mem-kicker {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sage);
}

.mem-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(34px, 7vw, 64px);
    line-height: 1.05;
    text-shadow: 0 2px 0 #000, 0 18px 40px rgba(0, 0, 0, 0.45);
}

.mem-lead {
    margin: 14px 0 0;
    max-width: 34em;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.5;
    color: var(--cream-soft);
}

.mem-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    animation: memFadeUp 1s 0.08s var(--ease-out, ease) both;
}

.mem-tab {
    appearance: none;
    border: 1px solid var(--line-bright);
    background: rgba(12, 10, 8, 0.55);
    color: var(--cream-soft);
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mem-tab:hover {
    color: var(--cream);
    border-color: rgba(143, 191, 159, 0.35);
}

.mem-tab.is-active {
    color: #0b0a08;
    background: linear-gradient(135deg, var(--sage-bright), var(--sage));
    border-color: transparent;
    transform: translateY(-1px);
}

.mem-main {
    flex: 1;
    animation: memFadeUp 1.05s 0.12s var(--ease-out, ease) both;
}

.mem-loading,
.mem-error {
    color: var(--cream-muted);
    font-size: 14px;
}

.mem-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(18px, 3vw, 32px);
    align-items: start;
}

.mem-card {
    background: rgba(12, 10, 8, 0.62);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    padding: clamp(18px, 3vw, 28px);
}

.mem-season-head {
    margin-bottom: 18px;
}

.mem-season-num {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ember);
}

.mem-season-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 34px);
    line-height: 1.1;
}

.mem-season-dates {
    margin: 8px 0 0;
    color: var(--cream-muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.mem-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 22px;
}

.mem-stat {
    min-width: 120px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--glass);
    border: 1px solid var(--line);
}

.mem-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    color: var(--sage-bright);
    text-shadow: 1px 1px 0 #000;
}

.mem-stat span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream-muted);
}

.mem-col-title {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-muted);
}

.mem-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mem-rank-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 248, 240, 0.03);
    border: 1px solid transparent;
}

.mem-rank-item:nth-child(-n+3) {
    border-color: rgba(143, 191, 159, 0.18);
    background: rgba(143, 191, 159, 0.06);
}

.mem-rank-n {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--ember);
}

.mem-rank-name {
    font-weight: 600;
    font-size: 14px;
}

.mem-rank-meta {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--cream-muted);
}

.mem-rank-val {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--sage-bright);
    white-space: nowrap;
}

.mem-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mem-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mem-thumb {
    appearance: none;
    border: 1px solid transparent;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111;
    opacity: 0.78;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mem-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mem-thumb:hover,
.mem-thumb.is-active {
    opacity: 1;
    border-color: rgba(232, 196, 154, 0.45);
    transform: translateY(-1px);
}

.mem-empty {
    color: var(--cream-muted);
    font-size: 14px;
    margin: 0;
}

.mem-thumb {
    cursor: zoom-in;
}

/* Lightbox – dvigubas paspaudimas ant nuotraukos */
.mem-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.mem-lightbox[hidden] {
    display: none !important;
}

.mem-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 3, 2, 0.82);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.mem-lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: memLightboxIn 0.28s var(--ease-out, ease);
}

.mem-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(88vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(243, 235, 226, 0.12);
    background: #0c0a08;
}

.mem-lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(243, 235, 226, 0.16);
    border-radius: 50%;
    background: rgba(12, 10, 8, 0.88);
    color: var(--cream);
    font-size: 26px;
    line-height: 1;
    z-index: 2;
}

.mem-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(243, 235, 226, 0.14);
    border-radius: 50%;
    background: rgba(12, 10, 8, 0.72);
    color: var(--cream);
    font-size: 28px;
    line-height: 1;
    z-index: 2;
}

.mem-lightbox-prev { left: -8px; }
.mem-lightbox-next { right: -8px; }

.mem-lightbox-close:hover,
.mem-lightbox-nav:hover {
    border-color: rgba(143, 191, 159, 0.45);
    color: var(--sage-bright);
}

.mem-lightbox-caption {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-muted);
}

@keyframes memLightboxIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

@media (max-width: 900px) {
    .mem-panel { grid-template-columns: 1fr; }
    .mem-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .mem-bg-slide,
    .mem-hero,
    .mem-tabs,
    .mem-main,
    .mem-tab,
    .mem-thumb,
    .mem-lightbox-stage {
        transition: none !important;
        animation: none !important;
    }
}
