/* ===================================
   Section Headers - Simple & Clean
   =================================== */

.section-header {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow: visible;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animated golden glow border effect */
.section-header::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(90deg, 
        var(--border-color) 0%, 
        var(--border-color) 40%, 
        rgba(255, 215, 0, 0.9) 50%, 
        var(--border-color) 60%, 
        var(--border-color) 100%);
    background-size: 200% 100%;
    animation: borderGlowSweep 10s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes borderGlowSweep {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.section-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
    min-height: 70px;
}

/* Skill Goals uses horizontal layout */
.section-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-left: 100px;
}

/* Quest Selection uses vertical layout */
#quest-selection .section-header-content {
    flex-direction: column;
    align-items: stretch;
}

#quest-selection .section-header-logo {
    top: -10px;
    transform: none;
}

.section-header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.section-header-bottom {
    display: flex;
    width: 100%;
}

.section-header-right {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.section-header-logo {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    z-index: 10;
}

.section-header-text {
    flex: 1;
    min-width: 0;
}

.section-header-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Header Buttons */
.btn-header {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary.btn-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    border-color: var(--border-gold);
}

.btn-primary.btn-header:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
}

.btn-secondary.btn-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary.btn-header:hover {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-header-content {
        flex-wrap: wrap;
    }
    
    .section-header-left {
        flex: 1 1 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .section-header-right {
        flex: 1 1 100%;
        justify-content: flex-end;
        padding-left: 100px;
    }
}

@media (max-width: 1024px) {
    .section-header-logo {
        height: 100px;
    }
    
    .section-header-left {
        padding-left: 90px;
    }
    
    .section-header-right {
        padding-left: 90px;
    }
}

@media (max-width: 768px) {
    .section-header-content {
        padding: var(--spacing-md);
        min-height: 60px;
    }
    
    .section-header-logo {
        height: 80px;
        left: -5px;
    }
    
    .section-header-left {
        padding-left: 70px;
    }
    
    .section-header-right {
        padding-left: 70px;
        flex-wrap: wrap;
    }
    
    .section-header-description {
        font-size: 0.875rem;
    }
    
    .btn-header {
        padding: 8px 16px;
        font-size: 0.875rem;
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .section-header-logo {
        height: 60px;
    }
    
    .section-header-left {
        padding-left: 55px;
    }
    
    .section-header-right {
        padding-left: 55px;
        flex-direction: column;
    }
    
    .btn-header {
        width: 100%;
    }
}
