/* ========================================
   Catherine Ann Arts - Custom Dark Theme
   ========================================
   
   COLOR PALETTE:
   - Purple (#b794f6): Primary accent, links, info badges (replaces blue)
   - Sage Green (#87a96b): Success states, complementary accent
   - Warm Gold (#e5b567): Warnings, highlights
   - Red (#f85149): Danger, errors
   
   This palette was specifically chosen to:
   1. Avoid harsh blues (artist preference)
   2. Create a warm, artistic feel with purple as primary
   3. Use muted sage green as a complementary color
   4. Maintain accessibility on dark backgrounds
   
   Bootstrap classes (bg-info, btn-info, badge.bg-info) 
   automatically use purple via CSS custom property overrides.
   ======================================== */

:root {
    /* Dark Theme Colors */
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #7d8590;
    --text-muted: #484f58;
    
    /* Artist Color Palette - Triad (Paletton.com) */
    /* Primary: Purple */
    --purple-1: #74469E;              /* Base purple - primary accent */
    --purple-2: #5E2A8E;              /* Darker purple */
    --purple-3: #491776;              /* Deep purple */
    --purple-4: #36085F;              /* Very deep purple */
    --purple-5: #240343;              /* Darkest purple */
    
    /* Secondary 1: Orange/Rust */
    --orange-1: #EB995E;              /* Base orange - warm accent */
    --orange-2: #D27733;              /* Darker orange */
    --orange-3: #AF5818;              /* Deep orange */
    --orange-4: #8E3E02;              /* Very deep orange */
    --orange-5: #632A00;              /* Darkest orange */
    
    /* Secondary 2: Teal/Green */
    --teal-1: #3F9F7B;                /* Base teal - cool accent */
    --teal-2: #238E65;                /* Darker teal */
    --teal-3: #107650;                /* Deep teal */
    --teal-4: #02603C;                /* Very deep teal */
    --teal-5: #00432A;                /* Darkest teal */
    
    /* Complement: Yellow/Gold */
    --gold-1: #EBE45E;                /* Base gold - highlight */
    --gold-2: #D2CA33;                /* Darker gold */
    --gold-3: #AFA818;                /* Deep gold */
    --gold-4: #8E8702;                /* Very deep gold */
    --gold-5: #635E00;                /* Darkest gold */
    
    /* Semantic Color Mapping */
    --accent-primary: #74469E;        /* Purple-1 for primary accent */
    --accent-secondary: #8b949e;      /* Gray for neutral elements */
    --success: #3F9F7B;               /* Teal-1 for success */
    --warning: #EB995E;               /* Orange-1 for warnings */
    --danger: #f85149;                /* Keep red for danger */
    --info: #74469E;                  /* Purple-1 for info (replaces blue) */
    
    /* Bootstrap Override Variables */
    --bs-primary: #74469E;
    --bs-primary-rgb: 116, 70, 158;
    --bs-info: #74469E;
    --bs-info-rgb: 116, 70, 158;
    --bs-success: #3F9F7B;
    --bs-success-rgb: 63, 159, 123;
    --bs-warning: #EB995E;
    --bs-warning-rgb: 235, 153, 94;
    --bs-danger: #f85149;
    --bs-danger-rgb: 248, 81, 73;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

/* Base Typography */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Headings - Elegant Serif */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1, .h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2, .h2 {
    font-size: 2.75rem;
    font-weight: 600;
}

h3, .h3 {
    font-size: 2.25rem;
    font-weight: 600;
}

h4, .h4 {
    font-size: 1.75rem;
    font-weight: 600;
}

h5, .h5 {
    font-size: 1.375rem;
    font-weight: 500;
}

h6, .h6 {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Display Classes */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* Lead Paragraphs */
.lead {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* Body Text */
p {
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

/* Small Text */
small, .small {
    font-size: 0.875rem;
    font-weight: 400;
}

/* Bold and Strong */
strong, b {
    font-weight: 600;
}

/* Buttons - Use body font but heavier */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Navbar - Body font */
.navbar {
    font-family: var(--font-body);
    font-weight: 500;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* Cards - Heading titles */
.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
}

.card-text {
    font-family: var(--font-body);
}

/* Badges - Body font, uppercase */
.badge {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Forms */
.form-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.form-control, .form-select {
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Breadcrumbs */
.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
}

/* ========================================
   END TYPOGRAPHY
   ======================================== */

main {
    flex: 1;
}

/* Navbar Dark */
.navbar-dark {
    background-color: var(--bg-darker) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: var(--text-primary) !important;
}

.navbar-dark .nav-link:hover {
    color: var(--purple-1) !important;
}

.navbar-dark .dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.navbar-dark .dropdown-item {
    color: var(--text-primary);
}

.navbar-dark .dropdown-item:hover {
    background-color: var(--bg-card-hover);
    color: var(--purple-1);
}

.navbar-dark .dropdown-divider {
    border-color: var(--border-color);
}

.navbar-dark .dropdown-header {
    color: var(--text-secondary);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    border-color: var(--accent-primary);
}

.card-header {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.card-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
}

.card-img-top {
    object-fit: cover;
    height: 250px;
    border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background-color: #1f6feb;
    border-color: #1f6feb;
}

.btn-outline-primary {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-outline-primary:hover {
    background-color: var(--accent-primary);
    color: var(--bg-darker);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--bg-darker);
}

.btn-info {
    background-color: var(--purple-1);
    border-color: var(--purple-1);
    color: white;
}

.btn-info:hover {
    background-color: var(--purple-2);
    border-color: var(--purple-2);
    color: white;
}

.btn-primary {
    background-color: var(--purple-1);
    border-color: var(--purple-1);
    color: white;
}

.btn-primary:hover {
    background-color: var(--purple-2);
    border-color: var(--purple-2);
    color: white;
}

.btn-success {
    background-color: var(--teal-1);
    border-color: var(--teal-1);
    color: white;
}

.btn-success:hover {
    background-color: var(--teal-2);
    border-color: var(--teal-2);
    color: white;
}

/* Forms */
.form-control,
.form-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-card);
    border-color: var(--purple-1);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(116, 70, 158, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
}

.form-text {
    color: var(--text-primary);
    opacity: 0.8;
}

.form-check-input {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Tables */
.table {
    color: var(--text-primary);
    border-color: var(--border-color);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: var(--bg-card-hover);
    --bs-table-hover-bg: var(--bg-card-hover);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-card-hover);
}

.table thead {
    border-color: var(--border-color);
}

.table thead th {
    color: var(--text-primary);
}

.table tbody {
    border-color: var(--border-color);
}

.table tbody td {
    color: var(--text-primary);
}

/* Alerts */
.alert-success {
    background-color: rgba(63, 159, 123, 0.15);
    border-color: var(--teal-2);
    color: var(--teal-1);
}

.alert-danger {
    background-color: rgba(248, 81, 73, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(235, 153, 94, 0.15);
    border-color: var(--orange-2);
    color: var(--orange-1);
}

.alert-info {
    background-color: rgba(116, 70, 158, 0.15);
    border-color: var(--purple-2);
    color: var(--purple-1);
}

/* Badges - Artist Palette */
.badge {
    font-weight: 500;
}

/* Info badge: Purple (was blue) */
.badge.bg-info {
    background-color: var(--purple-1) !important;
    color: white !important;
}

.badge.bg-secondary {
    background-color: var(--accent-secondary) !important;
    color: var(--text-primary) !important;
}

.badge.bg-success {
    background-color: var(--teal-1) !important;
    color: white !important;
}

.badge.bg-warning {
    background-color: var(--orange-1) !important;
    color: var(--bg-darker) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
    color: white !important;
}

.badge.bg-primary {
    background-color: var(--purple-1) !important;
    color: white !important;
}

/* Links */
a {
    color: var(--purple-1);
    text-decoration: none;
}

a:hover {
    color: var(--purple-2);
    text-decoration: underline;
}

/* Text colors */
.text-muted {
    color: var(--text-secondary) !important;
}

.text-primary {
    color: var(--purple-1) !important;
}

.text-info {
    color: var(--purple-1) !important;
}

.text-purple {
    color: var(--purple-1) !important;
}

.text-teal {
    color: var(--teal-1) !important;
}

.text-success {
    color: var(--teal-1) !important;
}

.text-warning {
    color: var(--orange-1) !important;
}

.text-orange {
    color: var(--orange-1) !important;
}

.text-gold {
    color: var(--gold-1) !important;
}

/* Background utility classes */
.bg-purple {
    background-color: var(--purple-1) !important;
}

.bg-purple-dark {
    background-color: var(--purple-3) !important;
}

.bg-teal {
    background-color: var(--teal-1) !important;
}

.bg-orange {
    background-color: var(--orange-1) !important;
}

.bg-gold {
    background-color: var(--gold-1) !important;
}

/* Hero section */
.hero-section {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 4rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

/* Center the main nav links across the entire navbar width */
.navbar .navbar-collapse {
    justify-content: center;
}

.navbar .navbar-nav.mx-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 2rem 0;
}

/* Pagination */
.pagination .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--accent-primary);
}

.pagination .page-link:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-darker);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Modal */
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal-backdrop {
    background-color: #000;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Input groups */
.input-group-text {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* List groups */
.list-group-item {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.list-group-item:hover {
    background-color: var(--bg-card-hover);
}

/* Nav tabs/pills */
.nav-tabs .nav-link {
    color: var(--text-secondary);
    border-color: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.nav-tabs .nav-link.active {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--accent-primary);
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.breadcrumb-item a {
    color: var(--accent-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--info);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
    content: "›";
    font-size: 1.2rem;
    padding: 0 0.5rem;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Close button for modals/alerts */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===================================
   BOOMER HELPER - Mobile Hamburger Menu Hint
   =================================== */
@media (max-width: 991.98px) {
    /* Show the hint on mobile when navbar is collapsed */
    .navbar-toggler ~ .boomer-hint {
        display: block !important;
    }
}

/* Boomer Hint Base Styles (hidden by default on larger screens) */
.boomer-hint {
    display: none; 
    position: absolute;
    right: calc(1rem + 38px + 20px); /* Position: nav padding-right + approx toggler width + gap + offset */
    top: 50%; /* Position at vertical center */
    transform: translateY(-50%); /* Center it vertically */
    padding: 8px 12px;
    background-color: #fff3cd; /* Light yellow */
    color: #664d03; /* Dark text */
    border: 1px solid #ffc107; /* Yellow border */
    border-radius: .375rem; /* Rounded corners */
    z-index: 1080; /* High z-index */
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.boomer-hint::after { /* Arrow body */
    content: '';
    position: absolute;
    top: 50%;
    left: 100%; /* Arrow on the right of the box, pointing right */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid #fff3cd; /* Arrow color (matches background) */
    z-index: 1; 
}

.boomer-hint::before { /* Arrow border */
    content: '';
    position: absolute;
    top: 50%;
    left: 100%; 
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent; /* Slightly larger for border */
    border-bottom: 8px solid transparent;
    border-left: 8px solid #ffc107; /* Arrow border color */
    z-index: 0; /* Behind main arrow body */
}

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

/* Tablet and smaller */
@media (max-width: 992px) {
    h1, .h1 { font-size: 2.75rem; }
    h2, .h2 { font-size: 2.25rem; }
    h3, .h3 { font-size: 1.875rem; }
    h4, .h4 { font-size: 1.5rem; }
    
    .display-1 { font-size: 4rem; }
    .display-2 { font-size: 3.5rem; }
    .display-3 { font-size: 3rem; }
    .display-4 { font-size: 2.5rem; }
    
    .lead { font-size: 1.125rem; }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1, .h1 { font-size: 2.25rem; }
    h2, .h2 { font-size: 1.875rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
    h5, .h5 { font-size: 1.125rem; }
    h6, .h6 { font-size: 1rem; }
    
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2.25rem; }
    .display-4 { font-size: 2rem; }
    
    .lead { font-size: 1rem; }
    
    .card-title { font-size: 1.25rem; }
}

/* Small mobile */
@media (max-width: 576px) {
    h1, .h1 { font-size: 1.875rem; }
    h2, .h2 { font-size: 1.625rem; }
    
    .navbar-brand { font-size: 1.25rem; }
}
