/* Kuş Atlası mobile homepage v2 — calm, fast and field-first. */
.atlas-home-v2 { display: none; }

@media (max-width: 768px) {
    body:has(.atlas-home-v2) main { padding: 0 !important; background: #f8f6f0; }
    body:has(.atlas-home-v2) footer { display: none !important; }
    body:has(.atlas-home-v2) > header .header-icon-btn,
    body:has(.atlas-home-v2) > header .mobile-toggle-btn { display: none !important; }
    body:has(.atlas-home-v2) > header .user-trigger,
    body:has(.atlas-home-v2) > header .btn-header-login,
    body:has(.atlas-home-v2) > header .member-account-toggle {
        display: grid !important;
        place-items: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 50%;
        background: rgba(255,255,255,.06);
    }
    body:has(.atlas-home-v2) > header .user-trigger > i,
    body:has(.atlas-home-v2) > header .btn-header-login > span,
    body:has(.atlas-home-v2) > header .member-account-toggle > span,
    body:has(.atlas-home-v2) > header .member-account-chevron { display: none !important; }
    body:has(.atlas-home-v2) > header .user-avatar-mini { width: 30px; height: 30px; }
    body:has(.atlas-home-v2) > header .atlas-account-glyph {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;
        height: auto;
        font-size: 1.25rem;
        line-height: 1;
        margin: 0;
        transform: translate(-50%, -50%);
    }
    body:has(.atlas-home-v2) > header .member-account-toggle { position: relative; }
    .desktop-homepage-view { display: none !important; }

    .atlas-home-v2 {
        display: block;
        min-height: 100vh;
        padding: 0 0 calc(104px + env(safe-area-inset-bottom));
        color: #073b2d;
        background: #faf8f2;
        overflow: hidden;
        font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .atlas-home-v2 *, .atlas-home-v2 *::before, .atlas-home-v2 *::after { box-sizing: border-box; }
    .atlas-home-v2 a { color: inherit; text-decoration: none; }

    .atlas-home-hero {
        position: relative;
        min-height: 254px;
        padding: 18px 20px 62px;
        isolation: isolate;
        background:
            linear-gradient(90deg, rgba(250,248,242,.98) 0%, rgba(250,248,242,.92) 48%, rgba(250,248,242,.42) 77%, rgba(250,248,242,.1) 100%),
            linear-gradient(180deg, rgba(250,248,242,.04) 45%, rgba(250,248,242,.34) 72%, rgba(250,248,242,.78) 100%),
            url("../images/home-mountain-lake-bg.webp?v=1") center bottom / cover no-repeat;
    }

    .atlas-home-hero-copy { position: relative; z-index: 2; max-width: 74%; }
    .atlas-home-kicker {
        display: block;
        margin-bottom: 8px;
        color: #1f5d49;
        font-size: .67rem;
        font-weight: 800;
        letter-spacing: .24em;
    }
    .atlas-home-hero h1 {
        max-width: 235px;
        margin: 0;
        color: #063b2d;
        font-size: clamp(1.62rem, 7.6vw, 2rem);
        font-weight: 850;
        line-height: .98;
        letter-spacing: -.045em;
    }
    .atlas-home-hero-copy p {
        max-width: 270px;
        margin: 9px 0 0;
        color: #60706c;
        font-size: .9rem;
        font-weight: 500;
        line-height: 1.38;
    }
    .atlas-home-flight-bird {
        position: absolute;
        z-index: 1;
        top: 7px;
        right: 16px;
        width: 41%;
        height: 142px;
        object-fit: contain;
        object-position: center;
        filter: drop-shadow(0 9px 10px rgba(7,39,29,.12));
        transition: opacity .22s ease, transform .22s ease;
        pointer-events: none;
    }
    .atlas-home-flight-bird.is-changing {
        opacity: 0;
        transform: translateY(-2px) scale(.97);
    }
    .atlas-home-flight-bird[data-species="Kır Baykuşu"] {
        right: 0;
        width: 49%;
    }
    .atlas-home-flight-bird[data-species="Telli Turna"] {
        right: -8px;
        width: 52%;
    }
    .atlas-home-flight-bird[data-species="Puhu"] {
        right: 0;
        width: 50%;
    }

    .atlas-home-search {
        position: absolute;
        z-index: 3;
        left: 18px;
        right: 18px;
        bottom: 12px;
        display: grid;
        grid-template-columns: auto minmax(0,1fr) 44px;
        align-items: center;
        min-height: 58px;
        padding: 4px 7px 4px 18px;
        border: 1px solid rgba(7,59,45,.13);
        border-radius: 22px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 9px 28px rgba(5,44,33,.13);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .atlas-home-search > i { color: #49645b; font-size: 1.1rem; }
    .atlas-home-search input {
        min-width: 0;
        height: 48px;
        padding: 0 12px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #073b2d;
        font: inherit;
        font-size: 1rem;
        -webkit-appearance: none;
    }
    .atlas-home-search input::placeholder { color: #7d8985; opacity: 1; }
    .atlas-home-search button {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 14px;
        background: #0b7654;
        color: #fff;
        cursor: pointer;
        touch-action: manipulation;
    }

    .atlas-home-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
        padding: 12px 16px 14px;
    }
    .atlas-action {
        position: relative;
        display: grid;
        grid-template-columns: 44px minmax(0,1fr) auto;
        align-items: center;
        gap: 8px;
        min-width: 0;
        min-height: 104px;
        padding: 13px 11px;
        border: 1px solid rgba(8,71,52,.07);
        border-radius: 15px;
        background: linear-gradient(135deg, #eef8f1 0%, #f7fbf7 100%);
        box-shadow: 0 5px 15px rgba(9,54,42,.05);
        text-align: left;
        font: inherit;
        cursor: pointer;
        overflow: hidden;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    }
    .atlas-action:nth-child(3), .atlas-action:nth-child(4) { background: #fff; }
    .atlas-action::after {
        content: "";
        position: absolute;
        right: -12px;
        bottom: -17px;
        width: 78px;
        height: 68px;
        opacity: .32;
        pointer-events: none;
    }
    .atlas-action-photo::after {
        border-radius: 60% 0 0 0;
        background: radial-gradient(ellipse at 50% 100%, transparent 48%, #a8d5b7 50% 54%, transparent 56%), radial-gradient(ellipse at 100% 50%, transparent 48%, #a8d5b7 50% 54%, transparent 56%);
    }
    .atlas-action-observe::after { background: linear-gradient(145deg, transparent 49%, #d3e8db 50% 72%, transparent 73%); clip-path: polygon(0 100%, 30% 49%, 48% 73%, 68% 29%, 100% 100%); }
    .atlas-action-nearby::after {
        inset: 0;
        width: auto;
        height: auto;
        opacity: .2;
        background: linear-gradient(32deg, transparent 42%, #a9c9b8 43% 45%, transparent 46%), linear-gradient(145deg, transparent 56%, #bcd8ca 57% 59%, transparent 60%);
    }
    .atlas-action:active { transform: scale(.985); background: #e7f5ec; box-shadow: inset 0 0 0 2px rgba(14,138,91,.18); }
    .atlas-action-icon {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: #086044;
        font-size: 1.35rem;
    }
    .atlas-action-icon > i { font-size: 2rem; line-height: 1; }
    .atlas-action-sound .atlas-action-icon > i { font-size: 2.15rem; }
    .atlas-action-observe .atlas-action-icon > i { font-size: 1.9rem; }
    .atlas-action-icon svg { width: 36px; height: 36px; fill: currentColor; }
    .atlas-action-icon .atlas-stroke-icon { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    .atlas-action-icon .atlas-microphone-icon { width: 34px; height: 34px; }
    .atlas-location-radar svg { width: 42px; height: 42px; }
    .atlas-location-radar svg > circle { fill: none; stroke: currentColor; stroke-width: 1.7; opacity: .15; }
    .atlas-action > span:nth-child(2) { min-width: 0; }
    .atlas-action strong, .atlas-action small { display: block; }
    .atlas-action strong {
        color: #073b2d;
        font-size: clamp(.87rem, 3.8vw, 1rem);
        font-weight: 800;
        line-height: 1.1;
    }
    .atlas-action small {
        margin-top: 5px;
        color: #607a70;
        font-size: clamp(.66rem, 2.8vw, .76rem);
        font-weight: 500;
        line-height: 1.22;
    }
    .atlas-action-arrow { width: 14px; height: 20px; fill: none; stroke: #0b6248; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
    .atlas-mini-wave { display: flex; align-items: center; gap: 2px; margin-left: -2px; color: #84c8a7; }
    .atlas-mini-wave i { width: 2px; height: 12px; border-radius: 4px; background: currentColor; }
    .atlas-mini-wave i:nth-child(2), .atlas-mini-wave i:nth-child(4) { height: 23px; }
    .atlas-mini-wave i:nth-child(3) { height: 34px; color: #12976a; }

    .atlas-season-card {
        position: relative;
        display: block;
        height: 164px;
        min-height: 164px;
        margin: 0 16px 17px;
        padding: 16px 45% 12px 18px;
        border-radius: 20px;
        color: #fff !important;
        overflow: hidden;
        background: #0d1210;
        box-shadow: 0 10px 25px rgba(0,0,0,.22);
    }
    .atlas-season-card::before {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(90deg, rgba(5,8,7,0.74) 0%, rgba(5,8,7,0.60) 30%, rgba(5,8,7,0.18) 50%, rgba(5,8,7,0) 66%);
        pointer-events: none;
    }
    .atlas-season-photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        filter: brightness(1.02) contrast(1.04);
        transition: opacity 0.75s ease-in-out;
        z-index: 0;
    }
    .atlas-season-photo-next {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        filter: brightness(1.02) contrast(1.04);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.75s ease-in-out;
        z-index: 0;
    }
    .atlas-season-copy { position: relative; z-index: 2; }
    .atlas-season-copy strong, .atlas-season-copy small { display: block; text-shadow: 0 1px 4px rgba(0,0,0,0.65); }
    .atlas-season-copy strong { font-size: 1.05rem; font-weight: 850; line-height: 1.08; }
    .atlas-season-copy small { margin-top: 6px; color: rgba(255,255,255,.9); font-size: .7rem; line-height: 1.3; }
    .atlas-season-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 36px;
        margin-top: 10px;
        padding: 0 16px;
        border-radius: 999px;
        background: #f4c957;
        color: #123e31;
        font-size: .8rem;
        font-weight: 850;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    .atlas-season-note {
        position: absolute;
        z-index: 2;
        right: 12px;
        top: 10px;
        color: rgba(255,255,255,.9);
        font-family: "Segoe Print", "Bradley Hand", cursive;
        font-size: .58rem;
        font-style: italic;
        line-height: 1.2;
        text-align: right;
        transform: rotate(-5deg);
        text-shadow: 0 1px 4px rgba(0,0,0,0.8);
        pointer-events: none;
    }

    .atlas-home-section { margin: 0 16px 22px; }
    .atlas-home-section > header {
        position: static;
        z-index: auto;
        top: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        margin: 0 2px 10px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .atlas-home-section h2 { margin: 0; color: #073b2d; font-size: 1.18rem; font-weight: 850; letter-spacing: -.02em; }
    .atlas-home-section header a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin: -12px -8px -12px 0;
        padding: 0 8px;
        color: #687b74;
        font-size: .73rem;
        white-space: nowrap;
    }

    .atlas-live-row { display: flex; gap: 9px; overflow-x: auto; padding: 1px 1px 7px; scrollbar-width: none; scroll-snap-type: x proximity; }
    .atlas-live-row::-webkit-scrollbar { display: none; }
    .atlas-live-chip {
        display: grid;
        grid-template-columns: 56px minmax(92px,1fr);
        align-items: center;
        flex: 0 0 158px;
        min-height: 66px;
        padding: 5px;
        border: 1px solid rgba(8,71,52,.08);
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(9,54,42,.05);
        scroll-snap-align: start;
        overflow: hidden;
    }
    .atlas-live-chip img { width: 56px; height: 56px; border-radius: 11px; object-fit: cover; background: #edf3ef; }
    .atlas-live-chip > span { min-width: 0; padding: 0 7px; }
    .atlas-live-chip strong, .atlas-live-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .atlas-live-chip strong { color: #0a3d2e; font-size: .78rem; font-weight: 800; }
    .atlas-live-chip small { margin-top: 5px; color: #74847e; font-size: .65rem; }

    .atlas-daily-card {
        display: grid;
        grid-template-columns: 43% minmax(0,1fr);
        min-height: 132px;
        border: 1px solid rgba(8,71,52,.08);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(9,54,42,.06);
        overflow: hidden;
    }
    .atlas-daily-card > img { width: 100%; height: 100%; min-height: 132px; object-fit: cover; background: #f2efe7; }
    .atlas-daily-card > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 15px 14px; }
    .atlas-daily-card strong { color: #073b2d; font-size: 1.03rem; font-weight: 850; line-height: 1.1; }
    .atlas-daily-card em { margin-top: 5px; color: #67736f; font-family: Georgia, serif; font-size: .77rem; }
    .atlas-daily-card small { margin-top: 15px; color: #09865d; font-size: .74rem; font-weight: 700; }

    .atlas-world-birds-entry {
        display: grid;
        grid-template-columns: 46px minmax(0,1fr) 24px;
        align-items: center;
        gap: 12px;
        min-height: 66px;
        margin: -10px 16px 22px;
        padding: 9px 15px 9px 10px;
        border: 1px solid rgba(8,71,52,.1);
        border-radius: 16px;
        background: linear-gradient(105deg,#e8f6ef 0%,#fff 72%);
        box-shadow: 0 5px 16px rgba(9,54,42,.06);
        color: #073b2d;
    }
    .atlas-world-birds-entry:focus-visible { outline: 3px solid #f4c957; outline-offset: 3px; }
    .atlas-world-birds-icon {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border-radius: 13px;
        background: #087858;
        color: #fff;
        font-size: 1.2rem;
    }
    .atlas-world-birds-entry strong { font-size: .93rem; font-weight: 850; letter-spacing: -.01em; }
    .atlas-world-birds-entry > .fa-chevron-right { justify-self: end; color: #087858; font-size: .75rem; }
}

@media (max-width: 370px) {
    .atlas-home-hero { min-height: 256px; padding-left: 17px; padding-right: 17px; }
    .atlas-home-flight-bird { width: 43%; right: 8px; }
    .atlas-home-flight-bird[data-species="Kır Baykuşu"] { width: 47%; right: -2px; }
    .atlas-home-flight-bird[data-species="Telli Turna"] { width: 50%; right: -10px; }
    .atlas-home-flight-bird[data-species="Puhu"] { width: 48%; right: -2px; }
    .atlas-home-actions { padding-left: 12px; padding-right: 12px; gap: 8px; }
    .atlas-action { grid-template-columns: 38px minmax(0,1fr) auto; padding: 10px 8px; }
    .atlas-action-icon { width: 38px; height: 38px; }
    .atlas-mini-wave { display: none; }
    .atlas-season-card, .atlas-home-section, .atlas-world-birds-entry { margin-left: 12px; margin-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-action, .atlas-home-flight-bird, .atlas-home-hero h1 { transition: none; }
}
