/* ============================================================
   Linkpage — Frontend Styles
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    /*overflow: hidden;*/
}

body.linkpage-body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* ---- Slideshow ---- */

.lp-slideshow,
.lp-no-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #0a0a0a;
}

.lp-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.lp-slide.is-active {
    opacity: 1;
}

/* Dark overlay over images */
.lp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.72) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

/* ---- Page Container ---- */

.lp-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px 24px 40px;
}

/* ---- Logo ---- */

.lp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    animation: lp-fade-down 0.9s ease both;
}

.lp-logo-img {
    max-width: 280px;
    max-height: 153px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
}

/* ---- Social Icons ---- */

.lp-socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: lp-fade-down 0.9s 0.15s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.lp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lp-social-link:hover {
    background: rgba(255, 255, 255, 0.30);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.12);
    color: #fff;
}

.lp-social-link:active {
    transform: scale(0.97);
}

/* ---- App Store Badges ---- */

.lp-app-stores {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: lp-fade-down 0.9s 0.25s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.lp-store-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lp-store-btn img {
    display: block;
    height: 38px;
    width: auto;
}

.lp-store-btn:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

/* ---- Heading ---- */

.lp-heading {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    line-height: 1.25;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    animation: lp-fade-down 0.9s 0.3s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ---- Links ---- */

.lp-links {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    animation: lp-fade-down 0.9s 0.35s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Featured grid */
.lp-links-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Last item full-width when odd count */
.lp-links-featured .lp-link-card:only-child,
.lp-links-featured .lp-link-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.lp-link-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.10);
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.lp-link-card:hover {
    transform: scale(1.02);
}

.lp-link-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.lp-link-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.20) 55%,
        transparent 100%
    );
}

.lp-link-card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.2;
}

/* Regular link button */
.lp-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lp-link-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.02);
    color: #fff;
}

/* ---- Copyright ---- */

.lp-copyright {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.03em;
    animation: lp-fade-down 0.9s 0.4s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
    margin-bottom: 0;
}

/* ---- Credit ---- */

.lp-credit {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.02em;
    animation: lp-fade-down 0.9s 0.45s ease both;
    opacity: 0;
    animation-fill-mode: forwards;
}

.lp-credit a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.lp-credit a:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* ---- Animations ---- */

@keyframes lp-fade-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
    .lp-container {
        padding: 40px 16px 32px;
    }

    .lp-logo-img {
        max-width: 200px;
        max-height: 109px;
    }
}
