/* ===========================
   Self-hosted Fonts – Hotel IDI Hub
   =========================== */

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat-VariableFont_wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Great Vibes Regular */
@font-face {
    font-family: "Great Vibes";
    src: url("/fonts/GreatVibes-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Light theme */
    --bg-gradient: radial-gradient(circle at top, #ffe9b5 0, #f6efe8 35%, #e9edf7 100%);
    --card-bg: #ffffffee;
    --card-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    --text-main: #2f2f2f;
    --text-muted: #8a7c73;
    --pill-bg: #e9e4df;
    --pill-border: #d6ccc3;
    --pill-text: #2e2723;
    --pill-bg-hover: #e3d9d2;
    --primary-bg: #5b524d;
    --primary-bg-hover: #4a433f;
    --primary-text: #ffffff;

    /* Practical info card */
    --info-bg: #faf4ed;
    --info-border: #d7c7b5;
    --info-text: #4a3f37;
    --info-muted: #8a7c73;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: background 0.4s ease, color 0.3s ease;
}

/* ===========================================
   PREVENT FLEX SQUASHING ON SHORT SCREENS
   =========================================== */
@media (max-height: 650px) {
    body {
        align-items: flex-start;
    }
}

/* --- WELCOME SCREEN --- */
#welcome-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-gradient);
    display: none;            /* πολύ σημαντικό */
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 9999;
    padding: 24px;
}

#welcome-screen .welcome-inner {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 22px 20px 18px;
    max-width: 360px;
    margin: 0 auto;
}

#welcome-screen img {
    max-width: 140px;
    height: auto;
    margin-bottom: 10px;
}

#welcome-screen h1 {
    font-size: 20px;
    margin: 6px 0 4px;
}

#welcome-screen p {
    margin: 4px 0;
    font-size: 13px;
}

#welcome-screen .welcome-small {
    font-size: 11px;
    opacity: 0.75;
}

/* --- HUB CONTENT --- */

.page {
    width: 100%;
    max-width: 440px;
    padding: 16px;
}

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    padding: 24px 18px 22px;
    text-align: center;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: fadeInCard 0.55s ease-out forwards;
}

/* Theme toggle button */
.theme-toggle {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
}

.theme-toggle-inner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.theme-toggle-inner:hover {
    transform: translateY(-1px);
}

/* Logo avatar */
.avatar-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 4px auto 14px;
    background: linear-gradient(145deg, #ffdf7d, #ffb851);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    animation: floatAvatar 3.5s ease-in-out infinite;
}

.avatar-inner {
    width: 89px;
    height: 89px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-inner img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.title {
    font-family: "Great Vibes", cursive;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 18px;
}

.section-label {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin: 16px 4px 6px;
}

/* Links / pills */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.link-row .link-button {
    flex: 1;
}

.link-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    font-size: 14px;
    font-weight: 500;
    color: var(--pill-text);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    transition:
        transform 0.08s ease-out,
        box-shadow 0.08s ease-out,
        background 0.1s ease-out,
        border-color 0.1s ease-out;
    opacity: 0;
    animation: fadeInUp 0.45s ease-out forwards;
    animation-delay: var(--delay, 0s);
    text-align: left;
}

.link-button:hover,
.link-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
    background: var(--pill-bg-hover);
    border-color: var(--pill-bg-hover);
}

.link-button .emoji {
    font-size: 22px;
    flex-shrink: 0;
}

.link-button .text-main {
    display: block;
}

.link-button .text-sub {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

.link-button.primary {
    background: var(--primary-bg);
    border-color: var(--primary-bg);
    color: var(--primary-text);
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.link-button.primary:hover,
.link-button.primary:active {
    background: var(--primary-bg-hover);
    border-color: var(--primary-bg-hover);
}

.link-button.primary .text-sub {
    opacity: 0.9;
}

/* Reception row tweaks */
.link-row.reception-row .link-button {
    padding: 8px 10px;
    font-size: 13px;
}

.link-row.reception-row .link-button .emoji {
    font-size: 20px;
}

.link-row.reception-row .link-button:first-child {
    flex: 0 0 60%;
}

.link-row.reception-row .link-button:last-child {
    flex: 0 0 40%;
}

/* Footer note */
.footer-note {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 380px) {
    .card {
        padding: 20px 14px 18px;
    }
    .title {
        font-size: 24px;
    }
}

/* Animations */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes floatAvatar {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* ===========================================
   ACCESSIBILITY & SAFETY FALLBACK FOR ANIMATION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .link-button {
        opacity: 1 !important;
        animation: none !important;
    }

    .card {
        animation: none !important;
    }

    .avatar-wrap,
    .avatar-inner,
    .avatar-inner img {
        animation: none !important;
    }
}


/* ==============================
   DARK THEME OVERRIDES
   ============================== */

/* Μεταβλητές για dark theme */
html.theme-dark {
    --bg-gradient: radial-gradient(circle at top, #151821 0, #10131b 40%, #05070c 100%);
    --card-bg: #171922f2;
    --card-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    --text-main: #f4f4f4;
    --text-muted: #b8b1aa;
    --pill-bg: #2b3145;
    --pill-border: #40475a;
    --pill-text: #ffffff;
    --pill-bg-hover: #353c52;

    /* ΠΙΟ ΣΚΟΥΡΟ / ΜΑΤ GOLD ΓΙΑ ΤΟ PRACTICAL INFO PILL */
    --primary-bg: #c28a34;
    --primary-bg-hover: #ad7830;
    --primary-text: #1c130b;

    --info-bg: #202331;
    --info-border: #464b5e;
    --info-text: #f4f4f4;
    --info-muted: #b8b1aa;
}

/* Theme toggle κουμπί στο dark */
html.theme-dark .theme-toggle-inner {
    background: rgba(255,255,255,0.08);
}

/* Avatar gradient στο dark */
html.theme-dark .avatar-wrap {
    background: radial-gradient(circle at 30% 10%, #ffe29f, #ffa99f 40%, #ff719a 100%);
}

/* Sea temp mini – λίγο πιο καθαρή στο dark */
html.theme-dark .sea-temp-mini {
    opacity: 0.85;
}



/* =======================================
   PRACTICAL INFO ACCORDION
   ======================================= */

.info-accordion {
    margin-top: 8px;
    margin-bottom: 14px;
    text-align: left;
}

.accordion-header {
    width: 100%;
    border-radius: 999px;
    padding: 11px 14px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-bg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;            /* 14 → 15 */
    font-weight: 700;           /* bold */
    color: var(--primary-text);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    font-family: "Montserrat", system-ui, sans-serif;
}

.accordion-header .emoji {
    font-size: 22px;
}

.accordion-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.accordion-header .text-main {
    font-size: 15px;
    font-weight: 700;
}

.accordion-header .text-sub {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.95;
}

.accordion-chevron {
    font-size: 16px;
    margin-left: auto;
}

.accordion-body {
    margin-top: 8px;
    padding: 10px 14px 10px;
    border-radius: 16px;
    background: var(--info-bg);
    border: 1px dashed var(--info-border);
    font-size: 13px;
    line-height: 1.65;
    color: var(--info-text);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        max-height 0.25s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.info-accordion.open .accordion-body {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 3px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* DARK THEME – PRACTICAL INFO COLORS */

html.theme-dark .accordion-body {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.16);
}

html.theme-dark .accordion-text-wrapper .text-main {
    color: #201812;
    font-weight: 700;   /* bold */
}

html.theme-dark .accordion-text-wrapper .text-sub {
    color: rgba(32, 24, 18, 0.82);
    font-weight: 600;   /* semi-bold */
}

/* =======================================
   WIFI COPY BUTTON
   ======================================= */

.wifi-copy {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wifi-copy-label {
    font-size: 11px;
    opacity: 0.75;
}

.wifi-copy.copied .wifi-copy-label {
    opacity: 1;
    font-weight: 700;
}

/* =======================================
   BEST BEACH HEADER + SEA TEMP MINI
   ======================================= */

.best-beach-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.sea-temp-mini {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 500;
}

/* =======================================
   LOCAL EVENTS LIST (no pill)
   ======================================= */

.events-card {
    margin-top: 4px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    font-size: 13px;               /* λίγο πιο μεγάλη βάση */
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.events-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.events-bullet {
    font-size: 17px;      /* από ~12–14 → 20 */
    line-height: 1;
    margin-top: 2px;      /* να μην κατεβαίνει πολύ */
    margin-right: 6px;
}

.events-title {
    font-weight: 600;
    font-size: 14px;               /* όσο τα text-main στα pills */
    color: var(--info-text);
}

.events-meta {
    font-size: 11px;               /* όσο τα text-sub */
    opacity: 0.75;
}

.events-row-muted {
    font-size: 13px;
    opacity: 0.7;
}

.events-title a {
    text-decoration: none !important;
    color: #b30000 !important;     /* κόκκινο “ζωντανό” */
    font-weight: 700 !important;   /* bold */
}

.events-title a:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

/* LOCAL EVENTS – link & "Where" style */

.events-where {
    font-weight: 700;
    color: #b30000;
    margin-right: 4px;
}

.events-meta-where {
    opacity: 1; /* να μην αχνοφαίνεται η γραμμή "Where:" */
}

.events-location-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.events-location-link:hover {
    text-decoration: none;
}

/* =======================================
   SOCIAL ICON BUTTONS
   ======================================= */

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 12px;
    justify-content: flex-start;
}

/* Small round icon buttons */
.icon-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pill-bg, #3b3f5a);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.icon-pill .emoji {
    font-size: 20px;
    line-height: 1;
}

.icon-pill:hover {
    background: rgba(255,255,255,0.10);
    box-shadow: 0 0 8px rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.icon-pill:active {
    transform: scale(0.92);
}

/* For screen readers only */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
