/* ==========================================================
   Kempinski Staff Dining Feedback
   1–5 Star iPad Landscape Version
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root{
    --background:#0c0c0c;
    --surface:#171717;
    --surface-hover:#222222;
    --gold:#B89D6B;
    --gold-light:#D8BF8C;
    --white:#ffffff;
    --text:#EAEAEA;
    --grey:#A8A8A8;
    --success:#4CAF50;
    --radius:22px;
    --shadow:0 12px 40px rgba(0,0,0,.45);
}

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

html,
body{
    width:100%;
    height:100%;
}

html{
    background:var(--background);
}

body{
    min-width:320px;
    min-height:100dvh;
    overflow:hidden;
    background:linear-gradient(180deg,#0d0d0d,#121212);
    color:var(--text);
    font-family:'Inter',sans-serif;
    -webkit-font-smoothing:antialiased;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
}

.background{
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at top,rgba(70,70,70,.38) 0%,transparent 48%);
    opacity:.72;
    z-index:-1;
}

.app{
    width:min(1180px,94vw);
    height:calc(100dvh - 44px);
    margin:0 auto;
    padding:20px 0 10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

header{
    flex:0 0 auto;
    margin-bottom:12px;
}

.logo{
    width:clamp(150px,18vw,250px);
    max-height:72px;
    object-fit:contain;
    user-select:none;
}

.headline{
    flex:0 0 auto;
}

.eyebrow{
    margin-bottom:7px;
    color:var(--gold);
    font-size:11px !important;
    font-weight:700;
    letter-spacing:.22em;
}

.headline h1{
    margin:0 0 7px;
    color:var(--white);
    font-size:clamp(28px,3.2vw,46px);
    font-weight:600;
    letter-spacing:.2px;
    line-height:1.05;
}

.headline p{
    margin:0 0 18px;
    color:var(--grey);
    font-size:clamp(14px,1.55vw,20px);
}

.rating-panel{
    width:100%;
    max-width:1120px;
    flex:0 0 auto;
}

.stars{
    width:100%;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:14px;
}

.star-button{
    min-width:0;
    min-height:190px;
    padding:18px 10px 15px;
    border:2px solid rgba(184,157,107,.25);
    border-radius:var(--radius);
    background:var(--surface);
    box-shadow:var(--shadow);
    color:var(--white);
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.star-button:hover,
.star-button:focus-visible{
    transform:translateY(-5px);
    border-color:var(--gold);
    background:var(--surface-hover);
    outline:none;
}

.star-button:active{
    transform:scale(.97);
}

.star{
    display:block;
    margin-bottom:6px;
    color:var(--gold-light);
    font-size:clamp(58px,6.5vw,88px);
    line-height:.95;
    text-shadow:0 0 24px rgba(184,157,107,.18);
}

.rating-number{
    display:block;
    margin-bottom:4px;
    color:var(--white);
    font-size:14px;
    font-weight:700;
}

.rating-label{
    display:block;
    color:var(--grey);
    font-size:clamp(13px,1.35vw,17px);
    font-weight:500;
    white-space:nowrap;
}

.rating-hint{
    margin-top:13px;
    color:#777;
    font-size:12px;
}

.hidden{
    display:none !important;
}

.thank-you{
    width:100%;
    animation:fadeIn .35s ease;
}

.success-icon{
    width:100px;
    height:100px;
    margin:0 auto 20px;
    border-radius:50%;
    background:var(--success);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:54px;
    box-shadow:0 0 45px rgba(76,175,80,.35);
}

.thank-you h2{
    margin-bottom:10px;
    font-size:clamp(38px,5vw,56px);
}

.thank-you p{
    margin-bottom:8px;
    color:var(--grey);
    font-size:20px;
}

.thank-you small{
    color:#777;
}

.toast{
    position:fixed;
    left:50%;
    bottom:42px;
    transform:translateX(-50%);
    padding:12px 24px;
    border:1px solid var(--gold);
    border-radius:50px;
    background:#1d1d1d;
    color:white;
    opacity:0;
    pointer-events:none;
    transition:.25s;
    z-index:50;
}

.toast.show{
    opacity:1;
}

footer{
    position:fixed;
    left:0;
    right:0;
    bottom:10px;
    text-align:center;
    color:#666;
    font-size:12px;
    pointer-events:none;
}

.loader{
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0d0d0d;
    transition:.4s;
}

.loader.hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.loader-spinner{
    width:54px;
    height:54px;
    border:5px solid #333;
    border-top-color:var(--gold);
    border-radius:50%;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{transform:rotate(360deg);}
}

@keyframes fadeIn{
    from{opacity:0;transform:translateY(10px);}
    to{opacity:1;transform:translateY(0);}
}

/* iPad landscape: everything stays on one screen */
@media (orientation:landscape) and (max-height:850px){
    .app{
        height:calc(100dvh - 30px);
        padding:10px 0 8px;
    }

    header{
        margin-bottom:6px;
    }

    .logo{
        width:clamp(130px,15vw,210px);
        max-height:55px;
    }

    .eyebrow{
        margin-bottom:4px;
        font-size:9px !important;
    }

    .headline h1{
        margin-bottom:4px;
        font-size:clamp(26px,3vw,39px);
    }

    .headline p{
        margin-bottom:12px;
        font-size:clamp(13px,1.4vw,17px);
    }

    .stars{
        gap:10px;
    }

    .star-button{
        min-height:150px;
        padding:12px 8px 10px;
    }

    .star{
        font-size:clamp(50px,6vw,74px);
    }

    .rating-label{
        font-size:clamp(12px,1.2vw,15px);
    }

    .rating-hint{
        margin-top:8px;
        font-size:10px;
    }

    footer{
        bottom:6px;
        font-size:10px;
    }
}

/* Portrait / smaller screens */
@media (orientation:portrait), (max-width:760px){
    body{
        overflow-y:auto;
    }

    .app{
        height:auto;
        min-height:100dvh;
        padding:26px 0 55px;
        justify-content:flex-start;
    }

    .stars{
        grid-template-columns:1fr;
        gap:12px;
    }

    .star-button{
        min-height:105px;
        flex-direction:row;
        justify-content:flex-start;
        gap:18px;
        padding:15px 22px;
    }

    .star{
        margin:0;
        font-size:52px;
    }

    .rating-number{
        margin:0;
        font-size:16px;
    }

    .rating-label{
        font-size:17px;
    }

    footer{
        position:relative;
        bottom:auto;
        padding:15px 0;
    }
}

