@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --navbar-bg: #8a4130;
    --sidebar-bg: #66261b;
    --body-bg: #823d2e;
    --categories-bar: #ffd2ab;
    --join-btn: #00beed;
    --text-color: #ffd15c;
    --login-register: #f07f07;
    --active-sidebar: #c46735;
    --borders: #fff987;
}
body {
    background-color: var(--body-bg);
    color: var(--text-color);
    min-height: 100vh;
}

.navbar-bg {
    background-color: var(--navbar-bg);
}

.sidebar-bg {
    background-color: var(--sidebar-bg);
}

.categories-bar {
    background-color: var(--body-bg);
}

.join-btn {
    background-color: var(--join-btn);
    border-color: var(--borders);
}

.text-custom {
    color: var(--text-color);
}

.login-register-btn {
    background-color: var(--login-register);
    border-color: var(--borders);
}

.active-sidebar {
    background-color: var(--active-sidebar);
}

.border-custom {
    border-color: var(--borders);
}

.sidebar {
    box-shadow: 4px 0 20px rgba(255, 249, 135, 0.3);
}

.nav-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: var(--active-sidebar);
    border-left-color: var(--borders);
    transform: translateX(5px);
}

.nav-item.active {
    background-color: var(--active-sidebar);
    border-left-color: var(--borders);
}

.hero-banner {
    background: linear-gradient(135deg, var(--body-bg) 0%, var(--navbar-bg) 50%, var(--active-sidebar) 100%);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hieroglyphs" patternUnits="userSpaceOnUse" width="20" height="20"><text x="10" y="15" font-family="serif" font-size="12" fill="rgba(255,209,92,0.1)" text-anchor="middle">𓀀</text></pattern></defs><rect width="100" height="100" fill="url(%23hieroglyphs)"/></svg>');
    opacity: 0.1;
}

.game-tile {
    background-color: var(--sidebar-bg);
    border: 2px solid var(--borders);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    flex: 0 0 280px;
    cursor: pointer;
}

.game-tile:hover::before {
    left: 100%;
}

.game-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 249, 135, 0.4);
    border-color: var(--borders);
}

.search-bar {
    background: rgba(255, 249, 135, 0.1);
    border: 2px solid var(--borders);
    border-radius: 25px;
    color: var(--text-color);
}

.search-bar:focus {
    border-color: var(--borders);
    box-shadow: 0 0 15px rgba(255, 249, 135, 0.3);
    outline: none;
}

.search-bar::placeholder {
    color: rgba(255, 209, 92, 0.7);
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #ffd15c, #fff987, #ffd15c);
    border: 2px solid #fff987;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 209, 92, 0.4);
    z-index: 10;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 209, 92, 0.6);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.slider-btn i {
    color: var(--sidebar-bg);
    font-size: 18px;
}

.rank-badge {
    background-color: var(--text-color);
    color: var(--sidebar-bg);
    border: 2px solid var(--borders);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 249, 135, 0.6);
}

.tab-active {
    background-color: #9c4936;
    color: #9c4936;
    border: 2px solid var(--borders);
}

.tab-inactive {
    background-color: #ffcea6;
    color: #9c4936;
    border: 2px solid var(--borders);
}

.tab-inactive:hover {
    background-color: rgba(196, 103, 53, 0.3);
    color: #ffcea6;
}

.slot-machine-bg {
    background: linear-gradient(145deg, var(--navbar-bg), var(--sidebar-bg));
    border: 1px solid var(--borders);
}

.mobile-menu-toggle {
    display: none;
}
@media (max-width: 767px) {
    #authButtons {
        display: none !important;
    }
    #userSection {
        display: none !important;
    }
}
/* Egyptian Arrow Styles */
.egyptian-arrow {
    position: relative;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: linear-gradient(145deg, #ffd15c, #fff987, #ffd15c);
    border: 2px solid #fff987;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
            0 4px 15px rgba(255, 209, 92, 0.4),
            inset 0 2px 10px rgba(255, 255, 255, 0.3),
            inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.egyptian-arrow:hover {
    box-shadow:
            0 6px 25px rgba(255, 209, 92, 0.6),
            inset 0 2px 15px rgba(255, 255, 255, 0.4),
            inset 0 -2px 15px rgba(0, 0, 0, 0.3);
}

.egyptian-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
}

.egyptian-arrow.left::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid #66261b;
    margin-left: -2px;
}

.egyptian-arrow.right::before {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #66261b;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .slider-container {
        padding: 0 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        left: 5px;
    }

    .slider-btn.next {
        right: 5px;
    }
}

.section-title {
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    color: #ffdcc2;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

section {
    padding: 4rem 0;
    border-top: 2px solid var(--borders);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--borders);
}

.categories-link {
    color: #66261b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-link:hover {
    transform: scale(1.05);
}
.join-button {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.join-button:hover {
    transform: scale(1.05);
}
@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    border: 3px solid #d4af37;
    border-radius: 20px;
    padding: 40px 35px;
    width: 400px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-container::before,
.modal-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    background: linear-gradient(90deg, transparent, #d4af37, #ffd700, #d4af37, transparent);
    border-radius: 4px;
}

.modal-container::before {
    top: -4px;
}

.modal-container::after {
    bottom: -4px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ffd700;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: none;
}

.register-text {
    text-align: center;
    margin-bottom: 25px;
    color: #d4af37;
    font-size: 14px;
    text-transform: none;
}

.register-link {
    color: #ffd700;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: none;
}

.register-link:hover {
    color: #ffed4e;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #d4af37;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: none;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(101, 67, 33, 0.8);
    border: 2px solid #8b4513;
    border-radius: 8px;
    color: #ffd700;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    text-transform: none;
    font-weight: 400;
}

.form-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Open Sans', sans-serif;
    text-transform: none;
    font-weight: 300;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #d4af37;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ffd700;
}

.forgot-password {
    text-align: center;
    margin-bottom: 25px;
}

.forgot-link {
    color: #ffd700;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: none;
}

.forgot-link:hover {
    color: #ffed4e;
}

.login-button {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    border: 3px solid #d4af37;
    border-radius: 25px;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.login-button::before,
.login-button::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #d4af37, #ffd700);
    border-radius: 50%;
}

.login-button::before {
    left: -5px;
    box-shadow:
            5px 0 0 #d4af37,
            10px 0 0 #ffd700,
            15px 0 0 #d4af37;
}

.login-button::after {
    right: -5px;
    box-shadow:
            -5px 0 0 #d4af37,
            -10px 0 0 #ffd700,
            -15px 0 0 #d4af37;
}

.login-button:hover {
    background: linear-gradient(135deg, #4169e1, #0080ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.username-login {
    text-align: center;
}

.username-link {
    color: #ffd700;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: none;
}

.username-link:hover {
    color: #ffed4e;
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.user-coins {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 209, 92, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid var(--borders);
}

.logout-btn {
    background: #dc2626;
    color: white;
    border: 2px solid var(--borders);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* Hide auth buttons when logged in */
.auth-buttons.hidden {
    display: none;
}

.user-section.hidden {
    display: none;
}

/* Register Modal Styles */
.register-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.register-form .form-group.full-width {
    grid-column: 1 / -1;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #ffd700;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #d4af37;
    z-index: 1001;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Error and Success Messages */
.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.success-message {
    color: #4ade80;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    background: rgba(74, 222, 128, 0.1);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.btn-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.btn-box:hover {
    transform: scale(1.05);
}
.end-img {
    margin-left: -10px;
}