/* Main Styles for Golden Resort */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color-dark);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color-dark);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Header Controls and Language Switcher */
/* Header controls for both desktop and mobile */
.header-controls {
    display: flex;
    align-items: center;
}

/* Top right mobile controls - only visible on mobile */
.top-right-controls {
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 15px;
    top: 20px;
    z-index: 100;
}

.mobile-language-switcher {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.mobile-menu-toggle {
    cursor: pointer;
    font-size: 24px;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.lang-btn {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--primary-color-light);
    color: var(--primary-color-dark);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 28px;
    margin: 0;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.button-wrapper {
    display: inline-block;
    text-align: center;
}

.hero .btn {
    display: inline-block;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    font-size: 18px;
    min-width: 200px;
}

.visitor-badge {
    display: block;
    margin-top: 10px;
    background-color: rgba(212, 175, 55, 0.9);
    color: #ffffff;
    padding-left: 20px;
    padding-right: 25px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.visitor-badge i {
    font-size: 15px;
    margin-right: 10px;
}

.visitor-count-number {
    font-size: 18px;
    font-weight: bold;
    margin-left: 20px;
    
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 15px;
    transition: all 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption h3 {
    color: var(--white);
    margin-bottom: 5px;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: var(--gray-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray-light);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Icon */
.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

/* RTL support for WhatsApp icon */
html[dir="rtl"] .whatsapp-icon {
    left: auto;
    right: 20px;
}

.whatsapp-icon a {
    display: block;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-icon a:hover {
    transform: scale(1.1);
}

/* Visitor Counter */
.visitor-counter-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 990;
}

/* RTL support for visitor counter */
html[dir="rtl"] .visitor-counter-fixed {
    right: auto;
    left: 20px;
}

.visitor-counter {
    display: flex;
    align-items: center;
    background-color: #D4AF37;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.visitor-counter:hover {
    transform: translateY(-5px);
}

.visitor-counter i {
    font-size: 24px;
    margin-right: 10px;
    color: #ffffff;
}

.visitor-count {
    display: flex;
    flex-direction: column;
}

#visitorCount {
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.visitor-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Login/Register Styles */
.auth-container {
    max-width: 500px;
    margin: 120px auto 60px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 0 0 15px 0;
    }
    
    .language-switcher {
        position: absolute;
        top: 18px;
        right: 60px;
        margin-right: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
.mobile-header-controls {
    display: flex;
    align-items: center;
}

/* For English (LTR) */
.mobile-header-controls {
    flex-direction: row;
}
.mobile-header-controls .mobile-menu-toggle {
    order: 2;
}
.mobile-header-controls .mobile-language-switcher {
    order: 1;
    margin-right: 15px;
}

/* For Arabic (RTL) */
.rtl-controls {
    flex-direction: row-reverse;
}
.rtl-controls .mobile-menu-toggle {
    order: 1;
}
.rtl-controls .mobile-language-switcher {
    order: 2;
    margin-left: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* General mobile header fixes */
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .logo {
        max-width: 60%;
    }
    
    /* Show mobile controls on mobile only */
    .top-right-controls {
        display: flex;
    }
    
    /* Show mobile controls, hide desktop controls */
    .mobile-header-controls {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    
    .header-controls.desktop-only {
        display: none;
    }
    
    /* Mobile language switcher styling */
    .mobile-lang {
        display: flex;
        margin-right: 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Fix for RTL in mobile */
    html[dir="rtl"] .top-right-controls {
        flex-direction: row-reverse;
        right: auto;
        left: 15px;
    }
    
    html[dir="rtl"] .mobile-language-switcher {
        margin-right: 0;
        margin-left: 15px;
    }
    
    html[dir="rtl"] .mobile-lang {
        margin-right: 0;
        margin-left: 10px;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: all 0.3s ease;
        overflow-y: auto;
        padding: 20px;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 0 0 15px 0;
    }
    
    /* RTL Specific Mobile Styles */
    html[dir="rtl"] .header-controls {
        margin-left: 0;
        margin-right: auto;
        flex-direction: row-reverse;
    }
    
    html[dir="rtl"] .main-nav {
        left: auto;
        right: -100%;
    }
    
    html[dir="rtl"] .main-nav.active {
        left: auto;
        right: 0;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-right: 0;
        margin-left: 15px;
    }
    
    /* Force correct RTL mobile layout */
    @media (max-width: 768px) {
        /* Core RTL mobile fixes */
        html[dir="rtl"] .main-header .container {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
        
        html[dir="rtl"] .logo {
            flex: 0 0 auto;
            max-width: 60%;
        }
        
        html[dir="rtl"] .header-controls {
            display: flex !important;
            flex-direction: row-reverse !important;
            margin-left: 0 !important;
            margin-right: auto !important;
            flex: 0 0 auto !important;
            position: relative !important;
            z-index: 10 !important;
            float: left !important;
            clear: left !important;
        }
        
        html[dir="rtl"] .language-switcher {
            display: flex !important;
            align-items: center !important;
            margin-right: 0 !important;
            margin-left: 15px !important;
        }
        
        html[dir="rtl"] .mobile-menu-toggle {
            display: block !important;
            margin-left: 0 !important;
        }
    }
}