/* ============================================================================ */
/* STANDARDIZED HEADER SYSTEM - CONSISTENT ACROSS ALL SITES */
/* ============================================================================ */

/* Standard Header Container */
.standard-header {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    align-items: center;
    padding: 0 32px;
    background: var(--header-bg, #1a1a2e);
    border-bottom: 2px solid var(--header-border, #2a2a3e);
    position: relative;
    height: 72px; /* Fixed height for consistency */
    flex-shrink: 0;
}

.standard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--header-accent, #d4af37);
    opacity: 0.3;
}

/* Profile Section - Standardized */
.standard-header .profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
}

.standard-header .profile-section:hover {
    background: var(--header-hover, rgba(255, 255, 255, 0.05));
    box-shadow: var(--header-shadow, 0 2px 8px rgba(0, 0, 0, 0.3));
}

.standard-header .profile-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--profile-bg, #2a2a3e);
    border: 2px solid var(--profile-border, #d4af37);
}

.standard-header .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: var(--profile-text, #d4af37);
}

.standard-header .profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.standard-header .profile-info h3 {
    color: var(--profile-name, #ffffff);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.standard-header .subscription-tier {
    color: var(--profile-tier, #d4af37);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title Section - Standardized */
.standard-header .title-section {
    text-align: center;
}

.standard-header .title-section h1 {
    font-size: 48px;
    font-weight: 300;
    color: var(--title-color, #d4af37);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 4px;
    font-family: 'Times New Roman', serif;
    margin: 0;
}

/* Logout Section - Standardized */
.standard-header .logout-section {
    text-align: right;
}

.standard-header .logout-btn {
    background: var(--logout-bg, #2a2a3e);
    border: 2px solid var(--logout-border, #2a2a3e);
    color: var(--logout-text, #ffffff);
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--logout-shadow, 0 2px 4px rgba(0, 0, 0, 0.3));
}

.standard-header .logout-btn:hover {
    background: var(--logout-hover-bg, #ff6b6b);
    border-color: var(--logout-hover-border, #ff6b6b);
    color: white;
    box-shadow: var(--logout-hover-shadow, 0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Mobile Responsive - Standardized */
@media (max-width: 768px) {
    .standard-header {
        padding: 0 16px;
        grid-template-columns: 1fr;
        gap: 8px;
        height: auto;
        min-height: 72px;
    }
    
    .standard-header .profile-section {
        justify-content: center;
        padding: 8px;
    }
    
    .standard-header .profile-image {
        width: 40px;
        height: 40px;
        font-size: 18px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--profile-bg, #2a2a3e);
        border: 2px solid var(--profile-border, #d4af37);
    }
    
    .standard-header .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .standard-header .profile-info h3 {
        font-size: 14px;
    }
    
    .standard-header .subscription-tier {
        font-size: 10px;
    }
    
    .standard-header .title-section h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }
}

/* ============================================================================ */
/* SITE-SPECIFIC COLOR THEMES */
/* ============================================================================ */

/* Threshold Theme */
.threshold-theme {
    --header-bg: var(--granite-dark);
    --header-border: var(--stone-edge);
    --header-accent: var(--gothic-gold);
    --header-hover: var(--granite-medium);
    --header-shadow: var(--carved-shadow);
    --profile-bg: var(--stone-texture);
    --profile-border: var(--gothic-gold);
    --profile-text: var(--gothic-gold);
    --profile-name: var(--text-stone);
    --profile-tier: var(--gothic-gold);
    --title-color: var(--gothic-gold);
    --logout-bg: var(--granite-medium);
    --logout-border: var(--stone-edge);
    --logout-text: var(--text-stone);
    --logout-shadow: var(--granite-shadow);
    --logout-hover-bg: var(--warning-ember);
    --logout-hover-border: var(--warning-ember);
    --logout-hover-shadow: var(--granite-shadow);
}

/* CampaignVTT Theme */
.campaignvtt-theme {
    --header-bg: var(--panel);
    --header-border: var(--accent);
    --header-accent: var(--accent);
    --header-hover: var(--panel-hover);
    --header-shadow: var(--shadow);
    --profile-bg: var(--panel);
    --profile-border: var(--accent);
    --profile-text: var(--accent);
    --profile-name: var(--text);
    --profile-tier: var(--accent);
    --title-color: var(--accent);
    --logout-bg: var(--panel);
    --logout-border: var(--accent);
    --logout-text: var(--text);
    --logout-shadow: var(--shadow);
    --logout-hover-bg: var(--accent);
    --logout-hover-border: var(--accent);
    --logout-hover-shadow: var(--shadow-hover);
}
