:root {
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
}

/* Minimalist Header */
.header {
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.site-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f97316;
    letter-spacing: -0.01em;
}

.site-title-link {
    color: #f97316;
    text-decoration: none;
    display: flex;
    align-items: center;
    border: none;
    outline: none;
    padding: 0;
}

.site-title-link:hover {
    color: #f97316;
}

.site-title-link:focus {
    outline: none;
    box-shadow: none;
}

/* Logo and Beta Badge Styles */
.site-title-link {
    color: #f97316;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    border: none !important;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

/* Complete override of parent theme styles - Reset to defaults */
h1.site-title a,
.site-title a,
.site-title-link {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    position: static !important;
}

/* Remove all pseudo-elements from parent theme */
h1.site-title a:before,
h1.site-title a:after,
.site-title a:before,
.site-title a:after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

.site-title-link:hover {
    opacity: 0.9;
}

.beta-badge {
    display: inline;
    margin-left: 0.25em;
    font-size: 1em;
    font-weight: 500;
    color: #fff;
    transform: translateY(1px);
}

/* Header Layout */
.header {
    background-color: #000000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Header Actions - Hidden on desktop, visible on mobile */
.header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.search-toggle {
    background: transparent;
    border: 1px solid #f97316;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

.search-toggle:active {
    transform: translateY(0);
}

.search-toggle-icon {
    width: 20px;
    height: 20px;
}

/* Search Form - Hidden by default, very compact */
.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: #000000;
    border: 1px solid #f97316;
    border-radius: 4px;
    z-index: 9999;
    display: none !important;
    /* Force hidden by default */
    padding: 0.25rem;
    margin-top: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.search-form.active {
    display: flex !important;
    /* Force show when active */
    opacity: 1;
    transform: translateY(0);
}

.search-form-content {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    background: #ffffff;
    border: 1px solid #f97316;
    border-radius: 15px;
    outline: none;
    color: #000;
    min-width: 0;
    height: 28px;
}

.search-input::placeholder {
    color: #999;
    font-size: 0.75rem;
}

.search-close {
    background: transparent;
    border: 1px solid #f97316;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-close:hover {
    background: rgba(249, 115, 22, 0.1);
}

.search-close-icon {
    width: 12px;
    height: 12px;
}

/* Position search form relative to header actions */
.header-actions {
    position: relative;
}

.diya-icon {
    margin-left: 0.5rem;
    display: inline-block;
    font-size: 1.1rem;
    animation: glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 191, 0, 0.7));
}

@keyframes glow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(255, 191, 0, 0.7));
    }

    50% {
        opacity: 0.85;
        transform: scale(1.1);
        filter: drop-shadow(0 0 5px rgba(255, 191, 0, 0.9));
    }
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid #f97316;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle-icon {
    width: 20px;
    height: 20px;
}

.theme-toggle-icon--light {
    display: none;
}

.theme-toggle-icon--dark {
    display: block;
}

[data-theme="light"] .theme-toggle-icon--light {
    display: block;
}

[data-theme="light"] .theme-toggle-icon--dark {
    display: none;
}

/* Navigation */
.navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: #f97316;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

/* Admin Bar Adjustment */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }

    .nav-list {
        gap: 1rem;
    }

    .site-title {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .navigation {
        display: none;
        /* Hide navigation completely on mobile */
    }

    .header-actions {
        display: flex;
        /* Show header actions on mobile */
    }

    .header {
        padding: 0.5rem 0;
    }

    .header-content {
        gap: 1rem;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .search-toggle,
    .theme-toggle {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .search-toggle-icon,
    .theme-toggle-icon {
        width: 16px;
        height: 16px;
    }

    /* Mobile search form adjustments */
    .search-form {
        width: 160px;
        right: -5px;
        padding: 0.2rem;
    }

    .search-input {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
        height: 26px;
    }

    .search-input::placeholder {
        font-size: 0.7rem;
    }

    .search-close {
        width: 22px;
        height: 22px;
    }

    .search-close-icon {
        width: 10px;
        height: 10px;
    }
}