@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #1a1a2e;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #11111e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

/* Custom Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    padding: 5px 15px 5px 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Discord Login Button (Top Right) */
.btn-login {
    background-color: #5865F2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-login:hover {
    background-color: #4752C4;
}

/* Secondary Button (Used for mobile login) */
.btn-secondary {
    background-color: #2b2b40;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #3b3b55;
}

/* Hamburger Button Hover */
.hamburger-btn {
    transition: opacity 0.2s ease;
}
.hamburger-btn:hover {
    opacity: 0.7;
}

/* =========================================
   USER PROFILE & DROPDOWN (TOP.GG STYLE)
   ========================================= */
.user-profile-container {
    position: relative;
    display: inline-block;
}

.user-icon-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.user-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #11111e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    flex-direction: column;
    padding: 8px 0;
    animation: fadeInDown 0.2s ease;
}

.user-dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #99aab5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.dropdown-item.logout-item:hover {
    color: #ff4757;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   SIDE MENU (DRAWER) STYLES
   ========================================= */
.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background-color: #11111e;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-container svg {
    transition: stroke 0.3s ease;
}

#doc-search {
    transition: all 0.3s ease;
}

#doc-search:focus {
    border-color: #5865F2 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

.search-container:focus-within svg {
    stroke: #5865F2 !important;
}

.close-btn {
    background: none;
    border: none;
    color: #99aab5;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px 10px;
}

.close-btn:hover {
    color: #ffffff;
}

.side-menu-content {
    padding: 25px 20px;
    flex: 1;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 25px;
}

.menu-title {
    color: #99aab5;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    display: block;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    padding-left: 20px;
}

/* Middle Section (Hero) with Background Image */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    background-image: url('/hero-bg.png');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1a1a2e 10%, rgba(26, 26, 46, 0.7) 50%, rgba(26, 26, 46, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e5;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.mobile-login {
    display: none;
}

/* MEE6 Style Footer Section */
.footer-section {
    background-color: #0b0e14;
    color: #99aab5;
    padding: 60px 20px 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: #99aab5;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #5865F2;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 13px;
    color: #72767d;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-selector {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.lang-btn {
    background: none;
    border: none;
    color: #99aab5;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 0;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #11111e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 160px;
    margin-bottom: 15px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
    z-index: 100;
}

.language-selector:hover .lang-dropdown {
    display: flex;
    flex-direction: column;
}

.lang-dropdown a {
    color: #99aab5;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 0;
}

.lang-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* =========================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .desktop-login {
        display: none;
    }

    .mobile-login {
        display: block; 
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 15px;
    }

    .hero-buttons .btn-login,
    .hero-buttons .btn-secondary {
        width: 100%;
        padding: 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .hero {
        background-position: center center;
    }

    .footer-bottom {
        align-items: center;
        text-align: center;
    }

    .language-selector {
        margin: 0 auto;
    }

    .lang-dropdown {
        left: 50%;
        transform: translateX(-50%);
    }
}
