/* RahoStudio Global Navigation & Drawer Styles */

:root {
    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-border: rgba(230, 230, 240, 0.85);
    --nav-text: #2d3748;
    --nav-primary: #6c5ce7;
    --nav-primary-hover: #5b4bc4;
    --nav-accent: #ff7675;
    --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --drawer-bg: #ffffff;
    --card-bg: #f8f9fa;
    --card-hover-bg: #f1f3f9;
}

/* Header Navbar Fix */
.raho-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

body {
    padding-top: 64px !important;
}

.raho-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Menu Toggle Button */
.raho-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.08);
    color: var(--nav-primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.raho-menu-btn:hover {
    background: var(--nav-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.raho-menu-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

/* Home Navigation Button */
.raho-home-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(253, 121, 168, 0.08);
    color: #e84393;
    border: 1px solid rgba(253, 121, 168, 0.25);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.raho-home-btn:hover {
    background: #e84393;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 67, 147, 0.25);
}

/* Brand Logo Title */
.raho-brand {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.3px;
}

/* Language Selector Dropdown */
.raho-lang-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.raho-lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c5ce7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 10px;
    padding: 6px 30px 6px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nav-text);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.raho-lang-select:hover, .raho-lang-select:focus {
    border-color: var(--nav-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* Drawer Overlay Backdrop */
.raho-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.raho-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Side Navigation Drawer */
.raho-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    background: var(--drawer-bg);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.raho-drawer-backdrop.active .raho-drawer {
    transform: translateX(0);
}

/* Drawer Header */
.raho-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--nav-border);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(253, 121, 168, 0.05));
}

.raho-drawer-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nav-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.raho-close-btn {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.raho-close-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #e53e3e;
}

/* Drawer Body Content */
.raho-drawer-body {
    padding: 1.25rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.raho-category-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.raho-category-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a0aec0;
    margin: 0 0 0.2rem 0.4rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.raho-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.raho-nav-item:hover {
    background: #ffffff;
    border-color: rgba(108, 92, 231, 0.25);
    color: var(--nav-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.08);
}

.raho-nav-item .icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.raho-nav-item .item-text {
    flex-grow: 1;
}

.raho-nav-item .external-badge {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.raho-nav-item:hover .external-badge {
    opacity: 0.9;
}

/* Mobile Responsiveness */
@media (max-width: 580px) {
    .raho-brand {
        display: none;
    }
}

@media (max-width: 480px) {
    .raho-menu-btn span, .raho-home-btn span {
        display: none;
    }
    .raho-menu-btn, .raho-home-btn {
        padding: 8px 10px;
    }
}
