/**
 * Pillar Header & Tabs Styles
 * 
 * Reusable styles for pillar landing pages (Truth, Community, Sovereignty)
 * Extracted from portal pattern for consistency across the site.
 */

/* ============================================
   PILLAR HERO SECTION
   ============================================ */

.pillar-hero {
    background: linear-gradient(135deg, var(--section) 0%, var(--bg) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 0 2rem;
}

.pillar-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pillar-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.pillar-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.pillar-hero__text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.pillar-hero__text p {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Auth Controls */
.pillar-hero__auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.pillar-auth-logged-in {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.pillar-auth-name {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.pillar-auth-controls {
    display: flex;
    gap: 0.75rem;
}

.pillar-auth-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.pillar-auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.pillar-auth-signin {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

.pillar-auth-signin:hover {
    background: #025f61;
    border-color: #025f61;
    color: white;
}

/* ============================================
   PILLAR COLOR VARIANTS
   ============================================ */

/* Truth Pillar - Gold */
.pillar-truth .pillar-hero__badge {
    border-color: rgba(250, 204, 21, 0.3);
    color: var(--gold);
}

.pillar-truth .pillar-hero__text h1 {
    background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Community Pillar - Blue */
.pillar-community .pillar-hero__badge {
    border-color: rgba(2, 95, 145, 0.3);
    color: var(--blue);
}

.pillar-community .pillar-hero__text h1 {
    background: linear-gradient(135deg, var(--text) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sovereignty Pillar - Red */
.pillar-sovereignty .pillar-hero__badge {
    border-color: rgba(209, 0, 0, 0.3);
    color: var(--primary);
}

.pillar-sovereignty .pillar-hero__text h1 {
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   PILLAR TABS NAVIGATION
   Styled to match portal.css button tabs
   ============================================ */

.pillar-tabs {
    background: transparent;
    padding: 1rem 0;
}

.pillar-tabs__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.pillar-tab {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    transition: border 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.pillar-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.pillar-tab.active {
    color: var(--text);
    border-color: var(--teal);
    background: rgba(2, 117, 120, 0.15);
    box-shadow: 0 0 12px rgba(2, 117, 120, 0.25);
}

.pillar-tab__icon {
    font-size: 1.2rem;
}

.pillar-tab__badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--muted);
    color: var(--bg);
}

.pillar-tab__badge.live {
    background: #10b981;
    color: white;
}

/* Tab Color Variants - Glow matches pillar color */
.pillar-tabs-truth .pillar-tab.active {
    border-color: var(--gold);
    background: rgba(250, 204, 21, 0.15);
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
}

.pillar-tabs-community .pillar-tab.active {
    border-color: var(--blue);
    background: rgba(2, 95, 145, 0.15);
    box-shadow: 0 0 12px rgba(2, 95, 145, 0.25);
}

.pillar-tabs-sovereignty .pillar-tab.active {
    border-color: var(--primary);
    background: rgba(209, 0, 0, 0.15);
    box-shadow: 0 0 12px rgba(209, 0, 0, 0.25);
}

.pillar-tab__badge.soon {
    background: var(--gold);
    color: var(--bg);
}

/* ============================================
   PILLAR CONTENT AREA
   ============================================ */

.pillar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.pillar-section {
    margin-bottom: 4rem;
}

.pillar-section:last-child {
    margin-bottom: 0;
}

.pillar-section__header {
    margin-bottom: 2rem;
}

.pillar-section__header h2 {
    font-size: 1.75rem;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.pillar-section__header p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Pillar Cards Grid */
.pillar-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    background: var(--section);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pillar-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pillar-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.pillar-card__description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.pillar-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.pillar-card__link:hover {
    text-decoration: underline;
}

/* Card Color Variants */
.pillar-card.card-truth:hover {
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(250, 204, 21, 0.1);
}

.pillar-card.card-community:hover {
    border-color: rgba(2, 95, 145, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(2, 95, 145, 0.1);
}

.pillar-card.card-sovereignty:hover {
    border-color: rgba(209, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(209, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .pillar-hero {
        padding: 2rem 0 1.5rem;
    }
    
    .pillar-hero__container {
        padding: 0 1.25rem;
    }
    
    .pillar-hero__content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pillar-hero__text h1 {
        font-size: 2rem;
    }
    
    .pillar-hero__auth {
        width: 100%;
    }
    
    .pillar-auth-logged-in {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .pillar-auth-signin {
        width: 100%;
        text-align: center;
    }
    
    .pillar-tabs__container {
        padding: 0 1.25rem;
    }
    
    .pillar-tab {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .pillar-content {
        padding: 2rem 1.25rem;
    }
    
    .pillar-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pillar-hero__text h1 {
        font-size: 1.75rem;
    }
    
    .pillar-hero__text p {
        font-size: 1rem;
    }
    
    .pillar-tab {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .pillar-tab__icon {
        font-size: 1rem;
    }
}

