/*
 * ============================================================
 * LUNAR CRY – HOMEPAGE
 * ============================================================
 * Verwendet die Designbasis aus /FF-XIV/css/ffxiv.css.
 * Dieses Stylesheet ergänzt ausschließlich die oberste Startseite.
 * ============================================================
 */

.home-page {
    display: block;
    min-height: 100vh;
    height: auto;
    color: var(--xiv-text, #e8edf0);
    background: var(--xiv-bg, #080b10);
    font-family: "Roboto", sans-serif;
}

.home-page .home-background {
    opacity: .76;
}

.home-page .xiv-background-overlay {
    background:
        linear-gradient(180deg, rgba(4, 8, 14, .52), rgba(4, 8, 14, .78) 48%, rgba(4, 7, 12, .96)),
        radial-gradient(ellipse at 50% 8%, rgba(58, 159, 169, .12), transparent 48%);
}

.home-page .home-site {
    isolation: isolate;
}

.home-page .home-header {
    position: sticky;
    top: 0;
}

.home-page .home-brand {
    text-decoration: none;
}

.home-page .home-nav {
    row-gap: 5px;
}

.home-page .home-hero {
    position: relative;
    min-height: 510px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(85, 213, 206, .14);
    background:
        radial-gradient(ellipse at 78% 35%, rgba(41, 143, 151, .16), transparent 42%),
        linear-gradient(90deg, rgba(5, 12, 17, .48), rgba(5, 12, 17, .12));
}

.home-page .home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(transparent, var(--xiv-bg, #080b10));
    pointer-events: none;
}

.home-page .home-hero__glow {
    position: absolute;
    top: 12%;
    right: 8%;
    width: min(36vw, 440px);
    aspect-ratio: 1;
    border: 1px solid rgba(85, 213, 206, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(85, 213, 206, .025), 0 0 0 82px rgba(85, 213, 206, .018);
    pointer-events: none;
}

.home-page .home-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 92px;
}

.home-page .home-hero h1 {
    max-width: 900px;
    margin: 22px 0 0;
    color: #f3f6f7;
    font: 500 clamp(40px, 6.6vw, 82px)/1.12 "Cinzel", serif;
    letter-spacing: .01em;
    text-shadow: 0 5px 35px rgba(0, 0, 0, .6);
}

.home-page .home-hero h1 span {
    display: block;
    margin-top: 8px;
    color: var(--xiv-cyan, #74d5e7);
    font: 500 clamp(21px, 3vw, 35px)/1.3 "Orbitron", sans-serif;
    letter-spacing: clamp(3px, .9vw, 10px);
}

.home-page .home-hero__description {
    max-width: 640px;
    margin: 25px 0 0;
    color: #bdcbd0;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
}

.home-page .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-page .home-hero__signature {
    margin-top: 29px;
    color: rgba(192, 211, 214, .62);
    font-size: 10px;
    letter-spacing: 1.8px;
    line-height: 1.8;
    text-transform: uppercase;
}

.home-page .home-ticker-wrap {
    position: relative;
    z-index: 3;
    margin-top: -25px;
}

.home-page .home-ticker {
    display: grid;
    grid-template-columns: 34px auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 64px;
    padding: 12px 20px;
    border: 1px solid rgba(85, 213, 206, .28);
    border-radius: 9px;
    background: rgba(8, 22, 27, .94);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.home-page .home-ticker__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(85, 213, 206, .25);
    border-radius: 50%;
    color: var(--xiv-cyan, #74d5e7);
    font-size: 17px;
}

.home-page .home-ticker__label {
    color: var(--xiv-cyan, #74d5e7);
    font: 600 9px "Orbitron", sans-serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-page .home-ticker__viewport {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.home-page .home-ticker__text {
    display: inline-block;
    padding: 0 8px;
    color: #c8d9dc;
    font-size: 12px;
    animation: home-ticker-scroll linear infinite;
}

@keyframes home-ticker-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.home-page .home-section {
    padding-top: 78px;
    padding-bottom: 35px;
}

.home-page .home-section-heading {
    margin-bottom: 38px;
}

.home-page .home-section-heading h2,
.home-page .home-panel__heading h2 {
    color: #edf3f5;
    font-family: "Cinzel", serif;
    font-weight: 500;
}

.home-page .home-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-page .home-directory-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 235px;
    flex-direction: column;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(85, 213, 206, .15);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(15, 34, 41, .92), rgba(7, 16, 22, .96));
    color: var(--xiv-text, #e8edf0);
    text-decoration: none;
    transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.home-page .home-directory-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--xiv-cyan, #74d5e7);
    opacity: .55;
    transition: opacity .22s ease;
}

.home-page .home-directory-card:hover {
    border-color: rgba(85, 213, 206, .5);
    background: linear-gradient(145deg, rgba(17, 46, 52, .97), rgba(7, 18, 24, .98));
    box-shadow: 0 16px 36px rgba(0, 0, 0, .23);
    transform: translateY(-3px);
}

.home-page .home-directory-card:hover::before {
    opacity: 1;
}

.home-page .home-directory-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px;
}

.home-page .home-directory-card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(85, 213, 206, .25);
    border-radius: 7px;
    background: rgba(85, 213, 206, .055);
    color: var(--xiv-cyan, #74d5e7);
    font-family: "Cinzel", serif;
    font-size: 23px;
}

.home-page .home-directory-card__icon img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.home-page .home-directory-card__arrow {
    color: rgba(142, 177, 181, .68);
    font-size: 17px;
    transition: color .2s ease, transform .2s ease;
}

.home-page .home-directory-card:hover .home-directory-card__arrow {
    color: var(--xiv-cyan, #74d5e7);
    transform: translate(2px, -2px);
}

.home-page .home-directory-card__eyebrow {
    margin-bottom: 8px;
    color: var(--xiv-cyan, #74d5e7);
    font: 600 8px "Orbitron", sans-serif;
    letter-spacing: 1.25px;
    line-height: 1.6;
    text-transform: uppercase;
}

.home-page .home-directory-card__title {
    overflow-wrap: anywhere;
    color: #eef4f5;
    font: 500 18px/1.35 "Cinzel", serif;
}

.home-page .home-directory-card__description {
    margin-top: 10px;
    color: #9eafb5;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.75;
}

.home-page .home-directory-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 17px;
    color: #b3c9cc;
    font-size: 10px;
    letter-spacing: .4px;
}

.home-page .home-directory-card:hover .home-directory-card__link {
    color: var(--xiv-cyan-light, #b2f0fa);
}

.home-page .home-empty-state {
    padding: 30px;
    border: 1px dashed rgba(85, 213, 206, .25);
    border-radius: 8px;
    color: #a7b7bc;
    text-align: center;
}

.home-page .home-community-section {
    padding-top: 35px;
    padding-bottom: 82px;
    background: linear-gradient(180deg, rgba(4, 9, 14, .18), rgba(4, 9, 14, .7));
    border-top: 1px solid rgba(85, 213, 206, .08);
}

.home-page .home-community-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    align-items: stretch;
    gap: 20px;
}

.home-page .home-panel {
    min-width: 0;
    padding: 27px;
    border: 1px solid rgba(85, 213, 206, .16);
    border-radius: 9px;
    background: rgba(8, 20, 26, .91);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .17);
}

.home-page .home-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.home-page .home-panel__heading .xiv-section-kicker {
    margin-bottom: 9px;
}

.home-page .home-panel__heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 31px);
}

.home-page .home-panel__symbol {
    color: rgba(85, 213, 206, .6);
    font: 30px "Cinzel", serif;
}

.home-page .home-panel__description {
    margin: 13px 0 20px;
    color: #9eafb5;
    font-size: 12px;
    line-height: 1.75;
}

.home-page .home-status-frame {
    min-height: 585px;
    overflow: hidden;
    border: 1px solid rgba(85, 213, 206, .12);
    border-radius: 7px;
    background: rgba(5, 12, 17, .65);
}

.home-page .home-status-frame iframe {
    display: block;
    width: 100%;
    height: 585px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.home-page .home-status-frame iframe:hover {
    transform: none;
    box-shadow: none;
}

.home-page .home-discord-frame {
    display: flex;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(85, 213, 206, .12);
    border-radius: 7px;
    background: rgba(5, 12, 17, .65);
}

.home-page .home-discord-frame iframe {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 500px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.home-page .home-discord-frame iframe:hover {
    transform: none;
    box-shadow: none;
}

.home-page .home-discord-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    color: var(--xiv-cyan, #74d5e7);
    font: 600 9px "Orbitron", sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.home-page .home-discord-link:hover {
    color: var(--xiv-cyan-light, #b2f0fa);
}

.home-page footer {
    position: relative;
    z-index: 2;
    padding: 25px 18px;
    border-top: 1px solid rgba(85, 213, 206, .15);
    background: rgba(4, 8, 13, .96);
    color: #84969d;
    font-size: 11px;
    line-height: 1.8;
}

.home-page footer p {
    margin: 3px 0;
}

.home-page footer a {
    color: #a8c5c8;
    text-decoration: none;
}

.home-page footer a:hover {
    color: var(--xiv-cyan-light, #b2f0fa);
}

.home-page #music-toggle,
.home-page #admin-login-btn,
.home-page #HomeAssist-login-btn {
    z-index: 50;
    border-color: rgba(85, 213, 206, .48);
    box-shadow: 0 0 16px rgba(85, 213, 206, .12);
}

.home-page #music-toggle {
    width: 38px;
    height: 38px;
    border-width: 1px;
    background: rgba(6, 18, 23, .92);
    color: var(--xiv-cyan-light, #b2f0fa);
    line-height: 34px;
}

.home-page #music-toggle:hover {
    background: rgba(24, 66, 70, .96);
    color: #fff;
    transform: translateY(-2px);
}

.home-page #admin-login-btn,
.home-page #HomeAssist-login-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(85, 213, 206, .35);
    border-radius: 50%;
    background: rgba(6, 18, 23, .92);
    color: var(--xiv-cyan-light, #b2f0fa);
    text-decoration: none;
}

@media (max-width: 1100px) {
    .home-page .home-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-page .home-community-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    }
}

@media (max-width: 820px) {
    .home-page .home-header {
        position: relative;
    }

    .home-page .home-hero {
        min-height: 440px;
    }

    .home-page .home-hero__inner {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .home-page .home-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .home-community-grid {
        grid-template-columns: 1fr;
    }

    .home-page .home-ticker {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px 12px;
    }

    .home-page .home-ticker__label {
        align-self: end;
    }

    .home-page .home-ticker__viewport {
        grid-column: 1 / -1;
        padding-top: 4px;
    }
}

@media (max-width: 520px) {
    .home-page .home-hero {
        min-height: 420px;
    }

    .home-page .home-hero h1 {
        font-size: clamp(36px, 10vw, 49px);
    }

    .home-page .home-hero h1 span {
        font-size: clamp(18px, 5vw, 24px);
        letter-spacing: 2px;
    }

    .home-page .home-hero__description {
        font-size: 13px;
    }

    .home-page .home-hero__signature {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .home-page .home-directory-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-page .home-directory-card {
        min-height: 205px;
    }

    .home-page .home-panel {
        padding: 19px;
    }

    .home-page .home-status-frame,
    .home-page .home-status-frame iframe {
        min-height: 350px;
        height: 350px;
    }

    .home-page .home-discord-frame,
    .home-page .home-discord-frame iframe {
        min-height: 450px;
        height: 450px;
    }

    .home-page .xiv-content {
        width: calc(100% - 30px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-directory-card,
    .home-page .home-directory-card__arrow {
        transition: none;
    }

    .home-page .home-ticker__text {
        animation: none;
        white-space: normal;
    }
}
