/* =====================================================
   شات الملوك - Complete Stylesheet
   ===================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a237e;
    --primary-dark: #0d47a1;
    --gold: #ffd700;
    --gold-light: #ffed4e;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --text-dark: #222;
    --text-muted: #555;
    --border-radius: 15px;
    --shadow: 0 8px 32px rgba(26, 35, 126, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
    direction: rtl;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   HEADER & NAVBAR
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 65px;
}

.navbar-brand h1 {
    color: var(--gold);
    font-size: 1.6em;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links li a {
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95em;
    transition: var(--transition);
}

.nav-links li a:hover {
    background: rgba(255,215,0,0.2);
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: var(--transition);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #1565c0 100%);
    overflow: hidden;
    padding: 60px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-background {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255,215,0,0.4);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(1em, 2.5vw, 1.3em);
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.badge {
    background: rgba(255,215,0,0.2);
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 1px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1em;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(255,215,0,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(255,215,0,0.6);
}

.btn-lg {
    padding: 18px 60px;
    font-size: 1.2em;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
}

.features h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, rgba(26,35,126,0.04), rgba(255,215,0,0.04));
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(255,215,0,0.2);
}

.feature-icon {
    font-size: 2.8em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.15em;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.7;
}

/* =====================================================
   ROOMS SECTION
   ===================================================== */
.rooms {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff8e1 100%);
    text-align: center;
}

.rooms h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 50px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.rooms-grid a,
.room-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--gold) !important;
    padding: 22px 15px;
    border-radius: var(--border-radius);
    font-weight: 800;
    font-size: 1em;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
    min-height: 70px;
    border: 2px solid transparent;
}

.rooms-grid a:hover,
.room-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(255,215,0,0.3);
    color: var(--white) !important;
}

/* =====================================================
   INFO SECTION
   ===================================================== */
.info {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
}

.info-container {
    max-width: 1100px;
    margin: 0 auto;
}

.info h2, .info-container h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-box {
    background: linear-gradient(135deg, rgba(26,35,126,0.05), rgba(255,215,0,0.05));
    border: 2px solid rgba(255,215,0,0.4);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(255,215,0,0.15);
}

.info-box h3 {
    color: var(--primary);
    font-size: 1.3em;
    font-weight: 800;
    margin-bottom: 15px;
}

.info-box p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: linear-gradient(135deg, #0d1b5e 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h4 {
    color: var(--gold);
    font-size: 1.1em;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,215,0,0.3);
}

.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95em;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold);
    padding-right: 5px;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,215,0,0.15);
    border: 2px solid rgba(255,215,0,0.4);
    border-radius: 50%;
    color: var(--gold);
    transition: var(--transition);
    cursor: pointer;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 8px 20px rgba(255,215,0,0.4);
    border-color: var(--gold);
}

.social-links a svg {
    display: block;
}

.social-facebook:hover {
    background: #1877F2;
    color: var(--white);
    border-color: #1877F2;
}

.social-twitter:hover {
    background: #000000;
    color: var(--white);
    border-color: #000000;
}

.social-youtube:hover {
    background: #FF0000;
    color: var(--white);
    border-color: #FF0000;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,215,0,0.2);
    padding-top: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
}

.footer-bottom p { margin-bottom: 5px; }

/* =====================================================
   ROOM PAGES
   ===================================================== */
.room-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 70px 20px;
    text-align: center;
    color: var(--white);
}

.room-hero h1 {
    font-size: clamp(2em, 5vw, 3.2em);
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.room-hero p { color: rgba(255,255,255,0.85); font-size: 1.1em; }

.room-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.room-description {
    max-width: 780px;
    margin: 40px auto;
    font-size: 1.1em;
    line-height: 1.9;
    color: var(--text-muted);
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-right: 4px solid var(--gold);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(26,35,126,0.08));
    border: 2px solid rgba(255,215,0,0.4);
    padding: 28px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(255,215,0,0.25);
}

.benefit-icon { font-size: 2.5em; margin-bottom: 12px; }

.benefit-card h3 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.benefit-card p { color: var(--text-muted); font-size: 0.9em; line-height: 1.6; }

.cta-button {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
    border: none;
    padding: 18px 60px;
    font-size: 1.25em;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 40px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
    font-family: 'Cairo', sans-serif;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(255,215,0,0.6);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--primary);
    transition: var(--transition);
    margin-bottom: 20px;
}

.back-link:hover {
    background: var(--primary);
    color: var(--gold);
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.loading {
    position: fixed;
    inset: 0;
    background: rgba(26,35,126,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading.hidden { display: none; }

.spinner {
    width: 50px; height: 50px;
    border: 5px solid rgba(255,215,0,0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.legal-container h1 {
    color: var(--primary);
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 15px;
}

.legal-container h2 {
    color: var(--primary);
    font-size: 1.3em;
    font-weight: 800;
    margin: 30px 0 10px;
}

.legal-container p, .legal-container li {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 10px;
}

/* =====================================================
   RESPONSIVE - TABLET (768px)
   ===================================================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 65px; right: 0; left: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .nav-links.active { display: flex; }

    .nav-links li a {
        display: block;
        padding: 12px 20px;
        border-radius: 10px;
    }

    .hero { min-height: 70vh; padding: 50px 15px; }

    .features, .rooms, .info, .cta { padding: 50px 15px; }

    .features h2, .rooms h2, .info h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .rooms-grid a, .room-card { padding: 16px 10px; font-size: 0.9em; }
    .benefits { grid-template-columns: 1fr; }
    .footer-content { gap: 25px; }
}

/* =====================================================
   RESPONSIVE - MOBILE (480px)
   ===================================================== */
@media (max-width: 480px) {
    .navbar-brand h1 { font-size: 1.3em; }
    .btn-lg { padding: 14px 35px; font-size: 1em; }
    .hero-title { font-size: 1.8em; }
    .hero-subtitle { font-size: 0.95em; }
    .features-grid { grid-template-columns: 1fr; }
    .rooms-grid { grid-template-columns: repeat(2, 1fr); }
    .cta h2 { font-size: 1.6em; }
    .legal-container { margin: 20px; padding: 25px 15px; }
    .cta-button { padding: 15px 35px; font-size: 1.05em; }
}
