/*
 * CoachCore – kiemelt belépési CTA-k + alkalmazás letöltés
 * Betöltés: a főoldali style.css után.
 */

/* =========================================================
   HEADER LOGIN CTA – közös alap
   ========================================================= */

.site-header .coach-login-action {
    --cc-login-main: 49 230 180;
    --cc-login-deep: 15 159 130;
    --cc-login-second: 47 114 255;

    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgb(var(--cc-login-main) / 0.78);
    border-radius: 5px;
    color: #ffffff !important;
    background:
        linear-gradient(
            115deg,
            rgb(var(--cc-login-deep) / 0.53),
            rgb(var(--cc-login-main) / 0.38) 48%,
            rgb(var(--cc-login-second) / 0.52)
        );
    box-shadow:
        0 0 0 0 rgb(var(--cc-login-main) / 0.48),
        0 12px 30px rgb(var(--cc-login-deep) / 0.32),
        0 8px 22px rgb(var(--cc-login-second) / 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transform: translateZ(0);
    animation: ccCoachLoginPulse 1.9s ease-in-out infinite;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        filter 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.text-action {
    color: #f0f8f3bf;
    font-size: 13px;
}

/* Edző: CoachCore zöld / teal */
.site-header .coach-login-action--coach {
    --cc-login-main: 49 230 180;
    --cc-login-deep: 15 159 130;
    --cc-login-second: 47 114 255;
}

/* Felhasználó: kék / lila-kék, hogy ránézésre más legyen */
.site-header .coach-login-action--user {
    --cc-login-main: 118 151 255;
    --cc-login-deep: 48 86 204;
    --cc-login-second: 123 92 255;
    animation-delay: 0.95s;
}

.site-header .coach-login-action::before {
    position: absolute;
    z-index: -1;
    inset: -6px;
    border: 1px solid rgb(var(--cc-login-main) / 0.38);
    border-radius: inherit;
    content: "";
    opacity: 0;
    pointer-events: none;
    animation: ccCoachLoginRing 1.9s ease-out infinite;
}

.site-header .coach-login-action--user::before {
    animation-delay: 0.95s;
}

.site-header .coach-login-action:hover {
    animation: none;
    color: #ffffff !important;
    border-color: rgba(235, 247, 255, 0.98);
    filter: saturate(1.12) brightness(1.08);
    transform: translateY(-2px) scale(1.025);
    box-shadow:
        0 0 0 7px rgb(var(--cc-login-main) / 0.13),
        0 18px 38px rgb(var(--cc-login-deep) / 0.42),
        0 10px 28px rgb(var(--cc-login-second) / 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.site-header .coach-login-action:active {
    transform: translateY(0) scale(0.99);
}

.site-header .coach-login-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.96);
    outline-offset: 4px;
}

/* Mobil: két külön, teljes szélességű portal gomb */
.nav-drawer .coach-login-action--mobile {
    width: 100%;
    min-height: 52px;
    margin: 7px 0;
    padding: 13px 18px !important;
    justify-content: center;
    text-align: center;
    border: 1px solid transparent !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 850;
}

.nav-drawer .coach-login-action--mobile.coach-login-action--coach {
    color: #e6fff8 !important;
    background: linear-gradient(115deg, rgba(15,159,130,.30), rgba(49,230,180,.12));
    border-color: rgba(49,230,180,.42) !important;
}

.nav-drawer .coach-login-action--mobile.coach-login-action--user {
    color: #edf2ff !important;
    background: linear-gradient(115deg, rgba(48,86,204,.32), rgba(123,92,255,.12));
    border-color: rgba(118,151,255,.42) !important;
}

/* =========================================================
   APP DOWNLOAD – jól látható hero blokk
   ========================================================= */

.app-download-panel {
    position: relative;
    width: min(100%, 650px);
    margin-top: 24px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(150px, .72fr) minmax(300px, 1.28fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    background:
        radial-gradient(circle at 0 0, rgba(75,197,183,.12), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
    box-shadow:
        0 18px 40px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.app-download-panel::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -90px;
    top: -95px;
    border-radius: 50%;
    background: rgba(47,114,255,.12);
    pointer-events: none;
}

.app-download-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.app-download-kicker,
.app-download-copy strong,
.app-download-copy small {
    display: block;
}

.app-download-kicker {
    margin-bottom: 6px;
    color: #4bc5b7;
    font: 700 8px/1.2 var(--mono, monospace);
    letter-spacing: .13em;
}

.app-download-copy strong {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 850;
}

.app-download-copy small {
    margin-top: 5px;
    color: rgba(234,243,237,.60);
    font-size: 10px;
    line-height: 1.4;
}

.app-download-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.store-download {
    min-width: 0;
    min-height: 57px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) 15px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.store-download--apple {
    background: linear-gradient(135deg, rgba(13,18,21,.95), rgba(37,43,49,.92));
    border-color: rgba(255,255,255,.20);
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.store-download--google {
    background: linear-gradient(135deg, rgba(10,89,82,.86), rgba(20,120,104,.68));
    border-color: rgba(75,197,183,.32);
    box-shadow: 0 10px 24px rgba(15,143,130,.13);
}

.store-download:hover {
    transform: translateY(-2px);
}

.store-download--apple:hover {
    border-color: rgba(255,255,255,.46);
    background: linear-gradient(135deg, rgba(22,28,32,.98), rgba(49,56,64,.95));
    box-shadow: 0 15px 30px rgba(0,0,0,.26);
}

.store-download--google:hover {
    border-color: rgba(75,197,183,.68);
    background: linear-gradient(135deg, rgba(10,105,95,.95), rgba(20,145,122,.76));
    box-shadow: 0 15px 30px rgba(15,143,130,.23);
}

.store-download-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
}

.store-download-icon--apple {
    color: #11181b;
    background: #ffffff;
}

.store-download-icon--google {
    color: #ffffff;
    background: linear-gradient(135deg,#2f72ff,#31e6b4);
}

.store-download > span:nth-child(2) {
    min-width: 0;
}

.store-download small,
.store-download strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-download small {
    color: rgba(255,255,255,.56);
    font: 700 6px/1.1 var(--mono, monospace);
    letter-spacing: .08em;
}

.store-download strong {
    margin-top: 3px;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 850;
}

.store-download > i {
    justify-self: end;
    color: rgba(255,255,255,.62);
    font-style: normal;
    font-size: 12px;
}

/* Light mode */
[data-theme="light"] .app-download-panel {
    background:
        radial-gradient(circle at 0 0, rgba(15,143,130,.10), transparent 42%),
        rgba(255,255,255,.66);
    border-color: rgba(5,47,59,.14);
    box-shadow:
        0 18px 40px rgba(5,47,59,.09),
        inset 0 1px 0 rgba(255,255,255,.76);
}

[data-theme="light"] .app-download-copy strong {
    color: var(--ink, #052f3b);
}

[data-theme="light"] .app-download-copy small {
    color: rgba(5,47,59,.62);
}

/* Footer store markers */
.footer-store {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.footer-store::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
}

.footer-store--apple::before {
    background: #dfe9e3;
    box-shadow: 0 0 8px rgba(223,233,227,.22);
}

.footer-store--google::before {
    background: #4bc5b7;
    box-shadow: 0 0 8px rgba(75,197,183,.26);
}

/* Ha a korábbi footer-login classok már bent vannak */
.footer-login {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.footer-login::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
}

.footer-login--coach::before {
    background: #4bc5b7;
    box-shadow: 0 0 8px rgba(75,197,183,.28);
}

.footer-login--user::before {
    background: #7697ff;
    box-shadow: 0 0 8px rgba(118,151,255,.26);
}

/* =========================================================
   ANIMÁCIÓ
   ========================================================= */

@keyframes ccCoachLoginPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgb(var(--cc-login-main) / 0.46),
            0 12px 30px rgb(var(--cc-login-deep) / 0.32),
            0 8px 22px rgb(var(--cc-login-second) / 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.34);
        transform: translateZ(0) scale(1);
    }

    50% {
        box-shadow:
            0 0 0 9px rgb(var(--cc-login-main) / 0),
            0 17px 38px rgb(var(--cc-login-deep) / 0.44),
            0 10px 28px rgb(var(--cc-login-second) / 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.42);
        transform: translateZ(0) scale(1.025);
    }
}

@keyframes ccCoachLoginRing {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    28% {
        opacity: 0.72;
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

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

/* Két belépési gomb mellett ne torlódjon a fejléc */
@media (max-width: 1420px) and (min-width: 1161px) {
    .header-actions {
        gap: 7px;
    }

    .site-header .coach-login-action {
        min-height: 38px;
        padding: 9px 10px;
        font-size: .69rem;
    }

    .header-actions .theme-toggle {
        padding-right: 8px;
    }

    .header-actions .theme-label {
        display: none;
    }

    .header-actions .button-small {
        padding-inline: 12px;
    }
}

@media (max-width: 820px) {
    .app-download-panel {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .app-download-copy {
        padding: 2px 2px 4px;
    }

    .app-download-actions {
        grid-template-columns: 1fr 1fr;
    }

    .store-download {
        min-height: 58px;
    }
}

@media (max-width: 520px) {
    .app-download-actions {
        grid-template-columns: 1fr;
    }

    .store-download {
        min-height: 60px;
        padding-inline: 12px;
    }

    .store-download strong {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header .coach-login-action,
    .site-header .coach-login-action::before {
        animation: none;
    }

    .site-header .coach-login-action {
        box-shadow:
            0 0 0 5px rgb(var(--cc-login-main) / 0.12),
            0 12px 30px rgb(var(--cc-login-deep) / 0.34),
            0 8px 22px rgb(var(--cc-login-second) / 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.34);
    }
}


/* =========================================================
   MOBILE POLISH / 2026-09-28
   A store blokk telefonon kompakt marad, nem nyújtja szét a herót.
   ========================================================= */

@media (max-width: 820px) {
    .app-download-panel {
        width: 100%;
        margin-top: 18px;
        padding: 13px;
        grid-template-columns: 1fr;
        gap: 11px;
        border-radius: 5px;
    }

    .app-download-copy {
        padding: 0 2px;
    }

    .app-download-kicker {
        margin-bottom: 5px;
        font-size: 7px;
        letter-spacing: .12em;
    }

    .app-download-copy strong {
        font-size: 13px;
        line-height: 1.15;
    }

    .app-download-copy small {
        margin-top: 4px;
        font-size: 9px;
        line-height: 1.3;
    }

    .app-download-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .store-download {
        min-height: 50px;
        padding: 7px 9px;
        grid-template-columns: 27px minmax(0, 1fr);
        gap: 8px;
        border-radius: 4px;
    }

    .store-download-icon {
        width: 27px;
        height: 27px;
        border-radius: 8px;
        font-size: 14px;
    }

    .store-download-icon--apple {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 17px;
        font-weight: 700;
    }

    .store-download > i {
        display: none;
    }

    .store-download small {
        display: none;
    }

    .store-download strong {
        margin-top: 0;
        font-size: 10.5px;
        line-height: 1.12;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .hero-proof {
        margin-top: 30px;
    }
}

@media (max-width: 520px) {
    /* Felülírja a korábbi egymás alá törést */
    .app-download-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-download {
        min-height: 49px;
        padding: 7px 8px;
    }

    .store-download strong {
        font-size: 10px;
    }
}

@media (max-width: 350px) {
    .app-download-actions {
        grid-template-columns: 1fr;
    }

    .store-download {
        min-height: 48px;
    }
}


/* Proper store marks */
.store-download-icon--google {
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.16);
}

.store-download-icon--google svg {
    width: 20px;
    height: 20px;
    display: block;
}

.store-download-icon--apple {
    color: #11181b;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 820px) {
    .store-download-icon--google svg {
        width: 18px;
        height: 18px;
    }
}


/* Menü / Letöltés horgony – fix fejléc miatt */
#letoltes {
    scroll-margin-top: 105px;
}

@media (max-width: 820px) {
    #letoltes {
        scroll-margin-top: 85px;
    }
}
