﻿/* Shared Styles - Common elements used across multiple pages.
   Components already defined in site.css (.glass-card, .ancient-card,
   .ancient-btn, .ancient-divider, keyframes) are NOT redefined here —
   shared.css loads after site.css and would override them. */

/* ============================================================
   UNIFIED PAGE BACKGROUND
   Each view only sets:  body { --page-bg: url('/images/...'); }
   One overlay recipe everywhere; fixed layer instead of
   background-attachment:fixed (broken on iOS Safari).
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(10, 22, 40, 0.90) 0%, rgba(18, 36, 61, 0.92) 55%, rgba(13, 30, 53, 0.94) 100%),
        var(--page-bg, none) center / cover no-repeat;
}

/* ============================================================
   UNIFIED PAGE HERO — standard opening block for inner pages
   ============================================================ */
.page-hero {
    text-align: center;
    padding: 4.5rem 1rem 2.5rem;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}
.page-hero p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 640px;
    margin: 0 auto;
}

/* ---- Inline image size helpers ---- */
.img-item-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* ---- Common text color helpers (replaces inline color:#b8c5d6 etc.) ---- */
.text-muted-light { color: var(--text-muted); font-size: 0.9rem; }
.text-success-alt  { color: var(--success); }

/* Common Section Styling */
.section-title {
    color: var(--accent-blue);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Common Form Styling */
.ancient-form-group {
    margin-bottom: 1.5rem;
}

.ancient-form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.ancient-form-control {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.ancient-form-control:focus {
    background: rgba(26, 35, 50, 0.9);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(108, 145, 204, 0.1);
    color: var(--text-primary);
    outline: none;
}

/* Common Table Styling */
.ancient-table {
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.ancient-table thead th {
    background: var(--primary-light);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.ancient-table tbody td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.ancient-table tbody tr:hover {
    background: rgba(108, 145, 204, 0.05);
}

/* Common Alert Styling */
.ancient-alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.ancient-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.ancient-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.ancient-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.ancient-alert-info {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

/* Common Badge Styling */
.ancient-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ancient-badge-primary {
    background: var(--accent-blue);
    color: var(--sky-white);
}

.ancient-badge-success {
    background: #10b981;
    color: var(--sky-white);
}

.ancient-badge-warning {
    background: #f59e0b;
    color: var(--sky-white);
}

.ancient-badge-danger {
    background: #ef4444;
    color: var(--sky-white);
}

/* Common Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--accent-blue); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Common Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Responsive Utilities */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .ancient-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .ancient-btn-lg {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .ancient-card {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .ancient-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
} 
