/* New Header Layout - Koperasi Kelurahan Loa Ipuh */

/* Top Header Section (White Background) */
.header-top {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-logo {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-brand {
    display: flex;
    flex-direction: column;
}

.header-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
    margin: 0;
    line-height: 1.2;
}

.header-brand-motto {
    font-size: 12px;
    color: #333;
    margin: 0;
    margin-top: 2px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.header-info-box {
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.instagram {
    background: #e4405f;
}

.social-icon.spotify {
    background: #1db954;
}

/* Bottom Navigation Bar (Black Background) */
.header-bottom {
    background: #000;
    padding: 0;
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.header-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.header-nav-link.has-dropdown::after {
    content: '+';
    margin-left: 5px;
    font-size: 12px;
    font-weight: 300;
}

.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-nav-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border: 2px solid transparent;
}

.header-nav-login i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.header-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 148, 51, 0.4);
    background: linear-gradient(45deg, #ffa64d 0%, #ff7a5c 25%, #ff3d5f 50%, #ff2d7a 75%, #d41a9a 100%);
}

.header-nav-login:hover i {
    transform: scale(1.1);
}

.header-nav-login-text {
    display: inline-block;
}

.header-nav-cta {
    background: #ffc107;
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header-nav-cta:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Fixed Header */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
    }
    
    .header-top-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 15px;
    }
    
    .header-left {
        width: 100%;
        justify-content: flex-start;
        order: 1;
        flex: 1;
        min-width: 0;
    }
    
    .header-center {
        display: none; /* Sembunyikan info box di mobile */
    }
    
    .header-right {
        width: auto;
        justify-content: flex-end;
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .header-brand-name {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .header-brand-motto {
        font-size: 10px;
        margin-top: 1px;
    }
    
    .header-logo {
        width: 45px;
        height: 45px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .header-brand {
        min-width: 0;
        flex: 1;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .header-bottom {
        display: none; /* Sembunyikan bottom nav di mobile, gunakan bottom-nav saja */
    }
    
    .header-nav {
        flex-direction: column;
        padding: 0;
    }
    
    .header-nav-menu {
        flex-direction: column;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-nav-item {
        width: 100%;
    }
    
    .header-nav-link {
        width: 100%;
        padding: 12px 20px;
    }
    
    .header-nav-actions {
        width: calc(100% - 40px);
        margin: 10px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-nav-login,
    .header-nav-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .header-nav-login-text {
        display: inline-block;
    }
}

/* Desktop Only - Show login icon */
@media (min-width: 769px) {
    .header-nav-login {
        display: flex;
    }
}

/* Mobile - Hide login from desktop nav (already in bottom nav) */
@media (max-width: 768px) {
    .header-nav-login {
        display: none;
    }
}

/* Spacer untuk fixed header */
.header-spacer {
    height: 140px;
}

@media (max-width: 768px) {
    .header-spacer {
        height: 80px; /* Sesuaikan dengan tinggi header mobile */
    }
    
    .header-spacer.desktop-only {
        display: none;
    }
}

