/* Fixed Full-Width Header CSS */

/* Remove default padding from body */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Make header truly full-width */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 1000;
    background-color: var(--header-background);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin: 0;
    box-sizing: border-box;
}

/* Header scroll effect */
.site-header.scrolled {
    background-color: rgba(var(--header-background-rgb), 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Inner container - remove padding */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Logo styling */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

/* Navigation styling */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.primary-menu li {
    margin: 0 15px;
    position: relative;
}

.primary-menu a {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

/* Menu hover effects */
.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-1);
    transition: width 0.3s ease;
}

.primary-menu a:hover::after,
.primary-menu li.current-menu-item a::after {
    width: 100%;
}

.primary-menu a:hover {
    color: var(--accent-1);
}

/* Button styling - using global variables */
.login-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--button-bg-default);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    order: 2;
}

.login-button:hover {
    background-color: var(--button-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.login-button:active {
    background-color: var(--button-bg-active);
}

/* User actions section */
.user-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    order: 3;
}

/* Profile icon styling */
.profile-icon {
    display: flex;
}

.profile-icon a {
    display: block;
}

.profile-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.profile-icon:hover img {
    border-color: var(--accent-1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    order: 4;
}

/* Remove any potential padding from page wrapper */
.page {
    max-width: 100%;
    width: 100% !important;
    margin: 0 auto;
    padding: 0;
    min-height: auto;
    box-sizing: border-box;
}

/* Reset other containers */
.container {
    max-width: 1200px;
    margin: 30px auto 100px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Main content area with proper height and padding */
.main-content {
    width :100%;
    min-height: 100%;
    box-sizing: border-box;
}

/* Content for blog posts and pages */
.entry-content {
    padding: 0 10px;
}

/* Make post meta look nicer */
.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--accent-2);
}

.post-meta i {
    margin-right: 5px;
}

.post-meta > span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

/* Fix untuk space kosong di bawah footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Mengatasi space kosong yang dibuat oleh wp_footer */
#wpadminbar ~ div:empty,
body > div:empty,
body > p:empty,
body > br,
footer ~ div:empty,
.site-footer ~ div:empty,
.site-footer ~ br,
.site-footer ~ p:empty {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
}

/* Responsive styles - match screenshot */
@media (max-width: 768px) {
    /* Mobile header layout */
    .header-container {
        justify-content: space-between;
        padding: 5px 15px;
    }
    
    .container {
      padding: 0.2rem !important;  
      margin-top: -0.3rem !important;
    }
    /* Smaller logo on mobile */
    .main-logo {
        max-height: 40px;
    }
    
    /* Hide desktop navigation */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--header-background);
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        order: 5;
        width: 100%;
        z-index: 1001;
        
    }
    .primary-menu.active {
        
      border-radius: 0px 0px 12px 12px;  
        
    }
    
    .main-navigation.active {
        display: block;
        position:absolute;
        width:auto;
    }
    
    /* Stack menu items vertically */
    .primary-menu {
        flex-direction: column;
    }
    
    .primary-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 1.5rem;
    }
    
    ui.primary-menu.active {
        position:absolute !important;
        
    }
    
    /* Mobile button layout */
    .login-button {
        order: 2;
        margin-left: 12px !important;
    }
    
    /* Mobile user actions */
    .user-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        order: 3;
    }
}