/* ========================================
   CALIMERA DESIGN TOKENS
   ======================================== */

:root {
    /* Soft surfaces */
    --c-sand:   #fff8f3;
    --c-cream:  #fceee5;
    --c-linen:  #f4d6c8;

    /* Brand accents */
    --c-terra:  #fa6616;   /* primary action */
    --c-earth:  #d24710;   /* hover / pressed */
    --c-honey:  #f2b13f;   /* warm highlight */
    --c-peach:  #ecbaa8;   /* soft pink */

    /* Dark surfaces */
    --c-bark:   #672e45;   /* deep bordo */
    --c-bark2:  #4e2032;   /* darker bordo */
    --c-stone:  #8d5c74;
    --c-violet: #ac4fc6;   /* purple accent */

    /* Text */
    --c-white:  #fffdfb;
    --c-text:   #2d1d24;
    --c-muted:  #9f7f8d;

    /* Calimera signature gradient — vertical, bottom-dark → top-light, mirrors the logo */
    --c-grad-sunset: linear-gradient(0deg, #672e45 0%, #ac4fc6 32%, #fa6616 68%, #f2b13f 100%);
    --c-grad-warm:   linear-gradient(0deg, #672e45 0%, #ac4fc6 38%, #e8927c 74%, #f2b13f 100%);
    --c-grad-glow:   radial-gradient(circle at 50% 80%, rgba(250,102,22,0.35), transparent 65%);

    --c-radius:    18px;
    --c-radius-lg: 26px;
    --c-shadow:    0 10px 40px rgba(103, 46, 69, 0.10), 0 4px 18px rgba(250, 102, 22, 0.06);
    --c-shadow-lg: 0 25px 80px rgba(103, 46, 69, 0.16), 0 10px 30px rgba(250, 102, 22, 0.10);
}

/* ========================================
   BASE RESET
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    height: 100vh;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========================================
   ANIMATIONS / KEYFRAMES
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.02); }
}

@keyframes zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

@keyframes shine {
    0%   { left: -50%; }
    100% { left: 100%; }
}

@keyframes logoZoom {
    0%   { opacity: 0; transform: scale(0.7); }
    50%  { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes textFade {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderFade {
    to { opacity: 0; visibility: hidden; }
}

@keyframes unlockAnim {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}
@keyframes organicSlide {

    0% {
        transform:
            translateY(-50%)
            translateX(-120px)
            scale(0.9);

        opacity: 0;
    }

    35% {
        opacity: 1;
    }

    100% {
        transform:
            translateY(-50%)
            translateX(140px)
            scale(1.15);

        opacity: 1;
    }
}

/* ── CALIMERA WAVE MERGE ── soldan ve sağdan iki dalga gelip logoda birleşir */
@keyframes waveLeft {
    0%   { transform: translateX(-100vw) scaleX(1.4); opacity: 0; }
    25%  { opacity: 1; }
    100% { transform: translateX(0)      scaleX(1);   opacity: 0.95; }
}

@keyframes waveRight {
    0%   { transform: translateX(100vw)  scaleX(-1.4); opacity: 0; }
    25%  { opacity: 1; }
    100% { transform: translateX(0)      scaleX(-1);   opacity: 0.95; }
}

@keyframes waveBreathe {
    0%, 100% { transform: scale(1);    opacity: 0.95; }
    50%      { transform: scale(1.04); opacity: 1; }
}

@keyframes calimeraGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(250,102,22,0.35)) drop-shadow(0 0 40px rgba(172,79,198,0.20)); }
    50%      { filter: drop-shadow(0 0 32px rgba(250,102,22,0.55)) drop-shadow(0 0 60px rgba(172,79,198,0.35)); }
}

@keyframes calimeraRise {
    0%   { opacity: 0; transform: translateY(40px) scale(0.85); }
    60%  { opacity: 1; transform: translateY(-4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ========================================
   FADE HELPERS
   ======================================== */

.fade-in  { animation: fadeIn  1.2s ease; }
.fade-out { animation: fadeOut 0.5s ease forwards; }

/* ========================================
   BACKGROUND
   ======================================== */

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, rgba(242,177,63,0.10), transparent 40%),
        radial-gradient(ellipse at bottom, rgba(172,79,198,0.12), transparent 45%),
        linear-gradient(180deg,
            rgba(45,29,36,0.55) 0%,
            rgba(78,32,50,0.65) 50%,
            rgba(103,46,69,0.78) 100%),
        url("images/zemin.png") center/cover no-repeat;
    z-index: -1;
    animation: zoom 30s infinite alternate;
}

.dashboard-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(45,29,36,0.45), rgba(103,46,69,0.55)),
        url("images/zemin.png") center/cover no-repeat;
    z-index: -1;
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* ========================================
   LOGO
   ======================================== */

.logo {
    width: 220px;
    max-width: 60vw;
    margin-bottom: 10px;
    transition: 0.4s ease;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

.logo:hover {
    transform: scale(1.06) translateY(-3px);
    filter: drop-shadow(0 12px 28px rgba(250,102,22,0.45));
}

.logo-small {
    width: 120px;
    margin-bottom: 10px;
}

/* ========================================
   HOTEL TEXT
   ======================================== */

.hotel-name {
    /* logo zaten "Calimera Sunpark Alanya" yazısını içeriyor — bu element gizli */
    display: none;
}

.hotel-sub {
    font-size: 13px;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* ========================================
   FORM BOX
   ======================================== */

.form-box {
    width: 90%;
    max-width: 480px;
    padding: 30px 26px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 177, 63, 0.18);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.10);
}

.form-box h2 {
    font-family: 'Fraunces', serif;
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--c-honey);
}

/* ========================================
   FIELD LABEL
   ======================================== */

.field-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.6;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 4px;
    padding-left: 4px;
    color: var(--c-peach);
}

/* ========================================
   ODA NUMARASI INPUT
   ======================================== */

.input-wrapper {
    position: relative;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(242,177,63,0.15);
    margin-bottom: 14px;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.input-wrapper:hover {
    background: rgba(255,255,255,0.09);
}

.input-wrapper:focus-within {
    border-color: rgba(250,102,22,0.55);
    box-shadow: 0 0 0 3px rgba(250,102,22,0.12);
}

/* Gerçek input — görünür, şeffaf */
.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
    height: 100%;
}

/* Placeholder stili */
.input-wrapper input::placeholder {
    color: rgba(252, 238, 229, 0.45);
}

/* Number input — ok butonlarını gizle */
.input-wrapper input::-webkit-outer-spin-button,
.input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-icon {
    display: flex;
    align-items: center;
    color: var(--c-honey);
    opacity: 0.7;
    flex-shrink: 0;
}

/* ========================================
   DATE ROW
   ======================================== */

.date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(242,177,63,0.15);
    margin-bottom: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.date-row:focus-within {
    border-color: rgba(250,102,22,0.55);
    box-shadow: 0 0 0 3px rgba(250,102,22,0.12);
}

.date-row select {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.date-row select option {
    background: #2d1d24;
    color: var(--c-cream);
}

.date-row .sep {
    opacity: 0.4;
    color: var(--c-honey);
    font-size: 16px;
    user-select: none;
    flex-shrink: 0;
}

.date-row .year-fixed {
    flex: 1;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* ========================================
   BUTTON
   ======================================== */

button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    /* Calimera signature: vertical sunset gradient */
    background: var(--c-grad-warm);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 10px 28px rgba(250, 102, 22, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 14px 36px rgba(250, 102, 22, 0.45), inset 0 1px 0 rgba(255,255,255,0.20);
    filter: brightness(1.08);
}

/* ========================================
   LINK
   ======================================== */

.home-link {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--c-honey);
}

/* ========================================
   PAGE WRAPPERS
   ======================================== */

.login-page,
.dashboard-page {
    overflow: hidden;
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 60px;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .dashboard  { max-width: 700px; }
    .services   { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
    .dashboard { max-width: 900px; }
}

/* ========================================
   TOP BAR
   ======================================== */

.top-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    margin-bottom: 25px;
    padding: 5px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(250,102,22,0.22);
    border-radius: 12px;
}

.top-bar i {
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.top-bar i:hover {
    transform: scale(1.2);
    color: #f2b13f;
}

/* ========================================
   CENTER BUTTON
   ======================================== */

.center-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250,102,22,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: 0.3s;
}

.center-btn i { margin: 0; }

.center-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(250,102,22,0.40);
}

/* ========================================
   HEADER
   ======================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.logo-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-block h2 {
    font-size: 18px;
    font-weight: 500;
}

.logo-block span {
    font-size: 13px;
    opacity: 0.7;
}

.notif-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250,102,22,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.notif-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(250,102,22,0.40);
}

/* ========================================
   DOOR CARD
   ======================================== */

.door-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(250,102,22,0.22);
    cursor: pointer;
    transition: 0.3s;
}

.door-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(250,102,22,0.32);
}

.door-card i {
    font-size: 20px;
    color: #f2b13f;
}

/* ========================================
   SERVICES
   ======================================== */

.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(250,102,22,0.22);
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.service:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(250,102,22,0.32);
}

.service i {
    font-size: 20px;
    color: #f2b13f;
}

/* ========================================
   MENU ITEM
   ======================================== */

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    gap: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.menu-item:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.05);
}

.menu-item i {
    font-size: 18px;
    color: #f2b13f;
}

.menu-item span {
    font-size: 11px;
    opacity: 0.8;
}

/* ========================================
   LOCK SCREEN
   ======================================== */

.lock-screen {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7)),
        url("images/havuz.png") center/cover no-repeat;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.lock-screen.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.lock-time {
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 10px;
}

.lock-text {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 30px;
}

/* ========================================
   SLIDER
   ======================================== */

.slider {
    width: 260px;
    height: 50px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.slider::before {
    content: "";
    position: absolute;
    left: -50%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 2s infinite;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--c-grad-warm);
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
}

.unlock {
    animation: unlockAnim 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ========================================
   ANNOUNCEMENTS
   ======================================== */

.announcements {
    margin-top: 25px;
}

.announcements h3 {
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

.announcement {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250,102,22,0.18);
    transition: 0.3s;
    cursor: pointer;
}

.announcement:hover {
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(250,102,22,0.28);
}

.announcement i {
    font-size: 18px;
    color: #f2b13f;
}

.announcement strong {
    display: block;
    font-weight: 600;
}

.announcement p {
    font-size: 12px;
    opacity: 0.7;
}

/* ========================================
   IOS NOTIFICATION
   ======================================== */

.ios-notification {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 25px;
    border-radius: 14px;
    font-size: 14px;
    z-index: 99999;
    transition: 0.5s ease;
}

.ios-notification.show {
    top: 20px;
}

/* ========================================
   LOADER
   ======================================== */

.loader {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at 50% 80%,
            rgba(250,102,22,0.22),
            transparent 50%),

        radial-gradient(circle at top right,
            rgba(242,177,63,0.14),
            transparent 35%),

        radial-gradient(circle at bottom left,
            rgba(172,79,198,0.16),
            transparent 40%),

        linear-gradient(0deg,
            #2d1d24 0%,
            #4e2032 50%,
            #672e45 100%);

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 5;
}

.loader-logo {
    width: 160px;
    max-width: 60vw;
    height: auto;

    position: relative;
    z-index: 3;

    animation: calimeraRise 1.2s cubic-bezier(0.25,1,0.5,1) forwards,
               calimeraGlow 3s ease-in-out 1.2s infinite;
}

.loader-text {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    margin-top: 18px;
    font-size: 22px;
    letter-spacing: 4px;
    color: var(--c-honey);
    opacity: 0;
    animation: textFade 1s ease forwards;
    animation-delay: 0.8s;
}

.loader-sub {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(252, 238, 229, 0.6);
    opacity: 0;
    margin-top: 8px;
    animation: textFade 1s ease forwards;
    animation-delay: 1.1s;
}

/* ── WAVE MERGE: SOL DALGA ── */
.loader::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 220px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background:
        radial-gradient(ellipse 50% 80% at 100% 50%,
            rgba(250,102,22,0.55) 0%,
            rgba(242,177,63,0.35) 25%,
            rgba(172,79,198,0.25) 55%,
            transparent 80%);
    filter: blur(38px);
    animation: waveLeft 1.6s cubic-bezier(0.25,1,0.5,1) forwards,
               waveBreathe 4s ease-in-out 1.6s infinite;
    z-index: 1;
}

/* ── WAVE MERGE: SAĞ DALGA ── */
.loader::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 220px;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    background:
        radial-gradient(ellipse 50% 80% at 100% 50%,
            rgba(172,79,198,0.55) 0%,
            rgba(250,102,22,0.35) 30%,
            rgba(242,177,63,0.20) 60%,
            transparent 80%);
    filter: blur(38px);
    animation: waveRight 1.6s cubic-bezier(0.25,1,0.5,1) 0.15s forwards,
               waveBreathe 4s ease-in-out 1.75s infinite;
    z-index: 1;
}

.loader.hide {
    animation: loaderFade 0.6s ease forwards;
}
/* ========================================
   iOS INSTALL POPUP
   ======================================== */

.ios-install-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-box {
    width: 85%;
    max-width: 320px;
    background: #111;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.ios-box h3 {
    margin-bottom: 10px;
}

.ios-box p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.ios-box button {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: #fa6616;
    color: #000;
    font-weight: 600;
}