@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Cairo:wght@600&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background-color: #f4f4f4;
}

/* NAVBAR */
.navbar {
    background-color: #8B0000; /* Comic red */
    height: 8vh; /* Kept in vh so it scales with height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw; /* ✅ Already viewport-based */
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    border-bottom: 0.3vw solid black;
    box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.2);
}

/* NAV LEFT */
.nav-left {
    display: flex;
    align-items: center;
}

/* NAV LOGO */
.nav-logo {
    height: 8vh; /* Kept in vh to match navbar height */
    width: auto;
}

/* NAV RIGHT */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1vw; /* Replaced rem with vw */
    flex-wrap: wrap;
}

/* NAV ITEMS */
.nav-item {
    font-size: 2vh;            /* Replaces 1rem => 2vw */
    color: white;
    text-decoration: none;
    background-color: #8B0000;
    padding: 0.6vw 2vw;        /* Replaces 0.3rem 1rem => 0.6vw 2vw */
    border-radius: 1.6vw;      /* Replaces 0.8rem => 1.6vw */
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-weight: bold;
    border: 0.2vw solid black; /* already exists, good for Sadu look */

}

.nav-item:hover {
    background-color: #a30000;
    transform: scale(1.05);
}

/* BUTTONS */
.btn-login,
.btn-register {
    background-color: #D4AF37;
    color: black;
    text-decoration: none;
    padding: 1vw 1vw;          /* Replaces 0.5rem 1.0rem => 1vw 2vw */
    font-size: 3vw;          /* Replaces 0.6rem => ~1.2vw */
    border-radius: 0.3vw;      /* Replaces 0.8rem => 1.6vw */
    transition: all 0.3s ease;
    font-weight: bold;
    border: 0.4vw solid black; /* Replaces 0.2rem => 0.4vw */

}

.btn-login:hover,
.btn-register:hover {
    background-color: #FFD700;
    transform: scale(1.05);
}

/* USER DROPDOWN */
.user-dropdown {
    position: relative;
}

.user-btn {
    background-color: #D4AF37;
    color: black;
    font-size: 6vw;            /* Replaces 1rem => 2vw */
    font-weight: bold;
    padding: 0.5vw 3.2vw;      /* Replaces 0.8rem 1.6rem => 1.6vw 3.2vw */
    border: 0.2vw solid black; /* Replaces 0.2rem => 0.4vw */
    border-radius: 0.6vw;      /* Replaces 0.8rem => 1.6vw */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.user-btn:hover {
    background-color: #FFD700;
    transform: scale(1.05);
}

/* DROPDOWN CONTENT */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fdfaf5;
    box-shadow: 0.3vw 0.3vw 0.4vw rgba(0,0,0,0.3); /* softer shadow */
    min-width: 8vw;
    right: 0;
    border-radius: 1.6vw;      /* Replaces 0.8rem => 1.6vw */
    z-index: 200;
    text-align: right;
    padding: 2vw;            /* Replaces 0.8rem => 1.6vw */
}

.dropdown-content p {
    font-size: 5vw;            /* Replaces 1rem => 2vw */
    margin: 1;
    color: black;
}

.dropdown-content a {
    display: block;
    color: black;
    text-decoration: none;
    font-size: 4vw;            /* Replaces 1rem => 2vw */
    padding: 1vw;            /* Replaces 0.8rem => 1.6vw */
    transition: background-color 0.3s ease;
    border-radius: 1vw;      /* Replaces 0.4rem => 0.8vw */
}

.dropdown-content a:hover {
    background-color: #f4f4f4;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}


/* MAKE NAVBAR SMALLER ON LARGE SCREENS */
@media (min-width: 1000px) {
    .navbar {
        height: 4vw; /* Smaller height */
        padding: 0 2vw;
    }
    .nav-logo {
        height: 4vw; /* Match the new navbar height */
    }
    .nav-item {
        font-size: 1vw;
        padding: 0.4vw 1.2vw;
        border-radius: 1vw;
        border: 0.2vw solid black; /* already exists, good for Sadu look */

    }
    .btn-login,
    .btn-register {
        font-size: 1.4vw;
        padding: 0.6vw 1.2vw;
        border-radius: 0.2vw;
        border: 0.2vw solid black;
    }
    .user-btn {
        font-size: 1.4vw;
        padding: 0.4vw 2vw;
        border: 0.2vw solid black;
        border-radius: 0.4vw;
    }
    .dropdown-content {
        padding: 1vw;
    }
    .dropdown-content p {
        font-size: 1.4vw;
    }
    .dropdown-content a {
        font-size: 1vw;
        padding: 0.6vw;
        border-radius: 0.4vw;
    }
}

/* RESPONSIVE DESIGN FOR SMALLER SCREENS */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        height: auto;
        padding: 1vw 2vw;
    }

    .nav-right {
        flex-direction: row;
        gap: 1vw;
        align-items: center;
    }

    .nav-left {
        justify-content: center;
        margin-bottom: 1vw;
    }

    .nav-item {
        font-size: 2vw;
        padding: 1.2vw 2.4vw;
        border: 0.2vw solid black; /* already exists, good for Sadu look */

    }

    .btn-login,
    .btn-register {
        font-size: 1.8vw;
        padding: 1.2vw 2.4vw;
    }
}