/* ============================================
   HEADER.CSS — Global reset + header + iOS modal
   ============================================ */

/* -------- GLOBAL RESET -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------- Calendar day base (used by index + booking) -------- */
.calendar-day {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px 2px;
    text-align: center;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-day.available {
    background: #fff9e6;
    border-color: #ffd200;
    cursor: pointer;
}

.calendar-day.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 210, 0, 0.3);
    border-color: #f7971e;
}

.calendar-day.blocked {
    opacity: 0.7;
    cursor: not-allowed;
}

.calendar-day.booked {
    background: #ffccbc;
    border-color: #ffab91;
}

.calendar-day.weekend {
    background: #ffccbc;
    border-color: #ffab91;
}

.calendar-day.past {
    background: #f0f0f0;
    border-color: #e0e0e0;
    opacity: 0.5;
}

.calendar-day.holiday {
    background: #e0e0e0;
    border-color: #ccc;
    opacity: 0.6;
}

.calendar-day .price-tag {
    font-size: 7px;
    color: #f7971e;
    font-weight: 600;
    margin-top: 1px;
}

/* ============================================
   HEADER STYLES - BLACK & YELLOW THEME
   ============================================ */
.site-header {
    background: #0a0a1a;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 2px solid rgba(255, 210, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 99px;
    width: auto;
    display: block;
}

/* -------- HEADER APP BUTTONS -------- */
.header-app-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

.header-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 210, 0, 0.25);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    background: rgba(255, 210, 0, 0.08);
    color: #ffd200;
}

.header-app-btn i {
    font-size: 14px;
}

.header-app-btn.android:hover,
.header-app-btn.ios:hover {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #0a0a1a;
    border-color: #ffd200;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 210, 0, 0.35);
}

/* -------- NAVIGATION -------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 210, 0, 0.08);
    color: #ffd200;
}

.main-nav a.active {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #0a0a1a;
}

.main-nav a.active:hover {
    background: linear-gradient(135deg, #e0881a, #e6c000);
}

/* -------- AUTH LINKS -------- */
.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.auth-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #ffd200;
    background: rgba(255, 210, 0, 0.08);
}

.auth-links .btn-login {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 210, 0, 0.2);
}

.auth-links .btn-login:hover {
    background: rgba(255, 210, 0, 0.12);
}

.auth-links .btn-register {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #0a0a1a;
}

.auth-links .btn-register:hover {
    background: linear-gradient(135deg, #e0881a, #e6c000);
    color: #0a0a1a;
    box-shadow: 0 6px 18px rgba(255, 210, 0, 0.3);
}

.auth-links .user-greeting {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    padding: 6px 10px;
}

.auth-links .user-greeting strong {
    color: white;
}

.auth-links .user-greeting i {
    color: #ffd200;
}

/* -------- HAMBURGER -------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #ffd200;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* -------- HEADER RESPONSIVE -------- */
@media (max-width: 1100px) {
    .header-app-btn span { display: none; }
    .header-app-btn {
        padding: 8px 10px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    .header-app-btn i { font-size: 16px; }
}

@media (max-width: 992px) {
    .main-nav a { padding: 8px 14px; font-size: 13px; }
    .site-logo { font-size: 20px; }
    .site-logo img { height: 32px; }
}

@media (max-width: 768px) {
    .header-inner { gap: 10px; }
    .hamburger { display: flex; order: 0; }
    .site-logo { order: 1; font-size: 18px; margin-right: auto; }
    .site-logo img { height: 28px; }
    .header-app-buttons { order: 2; margin-left: 0; margin-right: 0; }
    .header-app-btn {
        padding: 6px 8px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }
    .header-app-btn i { font-size: 14px; }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 0 8px;
        border-top: 1px solid rgba(255, 210, 0, 0.1);
        margin-top: 8px;
        gap: 4px;
        order: 4;
        flex: 0 0 100%;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        padding: 12px 16px;
        text-align: center;
        font-size: 15px;
        border-radius: 10px;
    }
    .auth-links { display: none !important; }
}

@media (max-width: 480px) {
    .site-header { padding: 12px 0; }
    .site-logo { font-size: 15px; }
    .site-logo img { height: 22px; }
    .main-nav a { font-size: 14px; padding: 10px 12px; }
    .header-app-btn { width: 30px; height: 30px; padding: 0; }
    .header-app-btn i { font-size: 13px; }
}

/* ============================================
   iOS INSTALL MODAL
   ============================================ */
.ios-install-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: iosFadeIn 0.3s ease;
}

.ios-install-modal.show { display: flex; }

@keyframes iosFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ios-install-content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: iosSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    border-top: 4px solid #ffd200;
}

@keyframes iosSlideUp {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.ios-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.ios-close:hover { color: #0a0a1a; }

.ios-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 2px solid #ffd200;
}

.ios-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ios-install-content h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0a0a1a;
    margin-bottom: 8px;
}

.ios-install-content > p {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.ios-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.ios-steps li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    font-size: 13px;
    color: #333;
}

.ios-steps li:last-child { border-bottom: none; }

.ios-steps .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #0a0a1a;
    font-weight: 800;
    font-size: 13px;
}

.ios-steps strong {
    color: #0a0a1a;
    font-weight: 700;
}

.ios-steps small {
    color: #999;
    font-size: 11px;
}

.ios-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #007aff;
    color: white;
    border-radius: 5px;
    font-size: 11px;
    margin-left: 4px;
    vertical-align: middle;
}

.ios-got-it {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #0a0a1a;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: inherit;
}

.ios-got-it:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 210, 0, 0.4);
}

@media (max-width: 480px) {
    .ios-install-content {
        padding: 24px 18px 18px;
        border-radius: 20px;
    }
    .ios-install-content h3 { font-size: 17px; }
    .ios-steps li { font-size: 12px; padding: 10px 0; }
    .ios-icon { width: 64px; height: 64px; }
}