﻿/*PWA Install Button*/
#install-banner {
    display: none;
    position: fixed;
    top: 50%;
    z-index: 9999;
    background: linear-gradient(135deg, #5a2d18, #3b1e12);
    color: white;
    padding: 10px 14px;
    flex-direction: column;
    gap: 6px;
}

/* 🔝 top row (close right) */
.install-top {
    display: flex;
    justify-content: flex-end;
}

/* 🔻 bottom row (content left) */
.install-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
}

.install-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
    color: black;
}

.install-subtitle {
    font-size: 12px;
    color: black;
    opacity: 0.6;
    margin-bottom: 12px;
}

.install-version {
    color: black;
}
/* ❌ close button */
.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* 🟤 install button */
.install-btn {
    width: 90px;
    height: 38px;
    background: #1a1a1a;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

    .install-btn:hover {
        background: #2a2a2a;
    }

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

/* =========================
   CSS @PROPERTY
   ========================= */

@property --holo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --foil-hue {
    syntax: '<number>';
    initial-value: 0;
    inherits: false;
}

/* =========================
   CARD
   ========================= */

.holo-card {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    position: fixed;
    /* Perfecte centrering die iOS wél altijd snapt */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%); /* Extra iOS safe prefix */

    z-index: 9999;
}

    /* Holographic border */
    .holo-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 22px;
        /* FALLBACK: Mocht iOS struikelen over de complexe variabelen, 
       dan pakt hij deze simpele gradient en breekt de CSS niet af. */
        background: linear-gradient(45deg, #ff007f, #7f00ff, #00f0ff, #ff007f);
        /* De geavanceerde gradient met een extra 'safari-vriendelijke' opbouw */
        background: linear-gradient( var(--holo-angle, 135deg), hsl(var(--foil-hue, 0), 100%, 60%), hsl(calc(var(--foil-hue, 0) + 60), 100%, 60%), hsl(calc(var(--foil-hue, 0) + 120), 100%, 60%), hsl(calc(var(--foil-hue, 0) + 180), 100%, 60%), hsl(calc(var(--foil-hue, 0) + 240), 100%, 60%), hsl(calc(var(--foil-hue, 0) + 300), 100%, 60%) );
        animation: holoCycle 6s linear infinite;
        filter: blur(1px);
        z-index: 0;
    }

/* inner card */
.holo-body {
    position: absolute;
    inset: 2px;
    border-radius: 18px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================
   ICON
   ========================= */

.install-icon {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.08);
}

/* =========================
   BUTTON
   ========================= */

.install-button {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #111, #1a1a1a);
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}

    .install-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .install-button:active {
        transform: translateY(0px) scale(0.98);
    }

.dismiss-button {
    margin-top: 6px;
    background: transparent;
    border: none;
    font-size: 15px;
    color: rgba(0,0,0,0.45);
    cursor: pointer;
    transition: 0.2s ease;
}

    .dismiss-button:hover {
        color: rgba(0,0,0,0.75);
        transform: translateY(-1px);
    }

/* =========================
   ANIMATION
   ========================= */

@keyframes holoCycle {
    0% {
        --holo-angle: 0deg;
        --foil-hue: 0;
    }

    25% {
        --holo-angle: 90deg;
        --foil-hue: 90;
    }

    50% {
        --holo-angle: 180deg;
        --foil-hue: 180;
    }

    75% {
        --holo-angle: 270deg;
        --foil-hue: 270;
    }

    100% {
        --holo-angle: 360deg;
        --foil-hue: 360;
    }
}
