/* ============================================
   RECHARGE PLATFORM HEADER - COMPACT ONE-LINE
   Logo + Search + Hamburger (Mobile & Desktop)
   ============================================ */

.rp-custom-header {
    position: relative;
    background: #1a2332;
    border-bottom: 1px solid #2a3a4a;
    z-index: 1000;
}

/* ==================== HEADER TOP BAR ==================== */
.rp-header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    min-height: 56px;
}

/* Logo */
.rp-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    min-width: 100px;
}

.rp-logo-icon {
    width: 32px;
    height: 32px;
    background: #4ecdc4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a2332;
    font-size: 14px;
}

.rp-logo-text {
    color: white;
}

/* Search Bar */
.rp-header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a3a4a;
    border-radius: 20px;
    padding: 6px 12px;
    flex: 1;
    min-width: 120px;
    max-width: 300px;
}

.rp-search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    color: white;
    font-size: 13px;
    font-family: inherit;
}

.rp-search-input::placeholder {
    color: #8899aa;
}

.rp-header-search button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #8899aa;
    display: flex;
    align-items: center;
}

.rp-header-search button:hover {
    color: #4ecdc4;
}

/* Hamburger Menu Button */
.rp-hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 44px;
    height: 44px;
    justify-content: center;
    flex-shrink: 0;
}

.rp-hamburger-btn span {
    width: 22px;
    height: 2px;
    background: #4ecdc4;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.rp-hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.rp-hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.rp-hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== SIDEBAR MENU ==================== */
.rp-sidebar-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #1a2332;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    padding-top: 60px;
}

.rp-sidebar-menu.active {
    transform: translateX(0);
}

.rp-sidebar-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-sidebar-menu-list li {
    border-bottom: 1px solid #2a3a4a;
}

.rp-sidebar-menu-list a {
    display: block;
    padding: 14px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

.rp-sidebar-menu-list a:hover {
    background: #2a3a4a;
    color: #4ecdc4;
}

.rp-sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #ccc;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-sidebar-close:hover {
    color: #4ecdc4;
}

/* Sidebar Overlay */
.rp-sidebar-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.rp-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 960px) {
    .rp-header-top-bar {
        padding: 12px 24px;
        gap: 16px;
    }

    .rp-header-logo {
        min-width: 120px;
    }

    .rp-header-search {
        max-width: 400px;
    }

    .rp-search-input {
        font-size: 14px;
    }

    /* Hide sidebar on desktop */
    .rp-sidebar-menu,
    .rp-sidebar-overlay {
        display: none !important;
    }

    .rp-hamburger-btn {
        display: none;
    }
}

/* ==================== SPACING FIX ==================== */
.rp-custom-header + * {
    margin-top: 0;
}

