/* ============================================
   شات الملوك - Styling
   ============================================ */

:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #ffd700;
    --gold-light: #ffe66d;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(26, 35, 126, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f1ff 100%);
}

/* ============= HEADER ============= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.5s ease-out;
    border-bottom: 3px solid var(--accent-color);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.navbar-brand h1 {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============= HERO SECTION ============= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1), transparent 50%);
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.98;
    font-weight: 500;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-light));
    color: var(--primary-color);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.badge:nth-child(2) {
    animation-delay: 0.1s;
}

.badge:nth-child(3) {
    animation-delay: 0.2s;
}

/* ============= BUTTONS ============= */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-light) 100%);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1.3rem 3.5rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 25px rgba(26, 35, 126, 0.4);
    transform: translateY(-2px);
}

/* ============= FEATURES SECTION ============= */
.features {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8f9ff 0%, #f0f1ff 100%);
}

.features h2,
.rooms h2,
.info h2,
.cta h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 900;
    position: relative;
    letter-spacing: 1px;
}

.features h2::after,
.rooms h2::after,
.info h2::after,
.cta h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 1.5rem auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============= ROOMS SECTION ============= */
.rooms {
    padding: 5rem 2rem;
    background: white;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.room-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.room-card:hover::before {
    transform: translateX(-100%);
}

.room-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.room-card::after {
    content: '🎭';
    margin-right: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ============= INFO SECTION ============= */
.info {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8f9ff 0%, white 100%);
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.info-box {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.1);
    transition: var(--transition);
    border-left: 5px solid var(--accent-color);
}

.info-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.info-box p {
    color: #555;
    line-height: 1.9;
    font-size: 0.95rem;
}

/* ============= CTA SECTION ============= */
.cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1), transparent 50%);
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta h2::after {
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.98;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* ============= FOOTER ============= */
.footer {
    background: linear-gradient(135deg, #0d1659 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(-8px);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-bottom p {
    margin: 0.8rem 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ============= LOADING ============= */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar-brand h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--primary-color);
        padding: 1rem;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features h2,
    .rooms h2,
    .info h2,
    .cta h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rooms-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1.5rem;
    }

    .room-card {
        min-height: 110px;
        font-size: 0.9rem;
        padding: 1.5rem 1rem;
    }

    .btn-lg {
        padding: 1rem 1.8rem;
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-badges {
        gap: 0.8rem;
    }

    .badge {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .features h2,
    .rooms h2,
    .info h2,
    .cta h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .navbar-brand h1 {
        font-size: 1.2rem;
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .room-card {
        min-height: 100px;
        font-size: 0.85rem;
        padding: 1rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============= PERFORMANCE ============= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============= ROOM PAGE STYLES ============= */

.room-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.room-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15), transparent 50%);
}

.room-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.room-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.room-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

.room-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Room Features */
.room-features {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.room-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Room Stats */
.room-stats {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Room Info */
.room-info {
    padding: 4rem 2rem;
    background: white;
    max-width: 1000px;
    margin: 0 auto;
}

.room-info h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-content {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
}

.info-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Room CTA */
.room-cta {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.room-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.room-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Back Section */
.back-section {
    padding: 2rem;
    text-align: center;
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

/* Responsive Room */
@media (max-width: 768px) {
    .room-title {
        font-size: 2rem;
    }

    .room-tagline {
        font-size: 1.2rem;
    }

    .room-description {
        font-size: 0.95rem;
    }

    .room-features h2,
    .room-info h2,
    .room-cta h2 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .info-content p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .room-title {
        font-size: 1.5rem;
    }

    .room-tagline {
        font-size: 1rem;
    }

    .room-description {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ============= PRINT ============= */
@media print {
    .header,
    .cta,
    .btn {
        display: none;
    }
}
