/**
 * ARCHIVESOWC Custom Design System
 * 
 * Color Palette:
 * - Primary Green: #1B4332 (Deep Forest Green) - Main brand color
 * - Secondary Green: #2D6A4F (Medium Green) - Hover states
 * - Accent Gold: #FFD60A (Vibrant Gold) - CTAs and highlights
 * - Light Green: #D8F3DC (Pale Green) - Backgrounds
 * - Dark Text: #081C15 (Almost Black) - Primary text
 * - Gray Text: #52796F (Muted Green-Gray) - Secondary text
 * 
 * Typography:
 * - Headings: 'Inter', sans-serif (via Google Fonts)
 * - Body: 'Inter', sans-serif
 * 
 * Accessibility:
 * - All color combinations meet WCAG 2.1 AA standards
 * - Minimum contrast ratio 4.5:1 for normal text
 * - Minimum contrast ratio 3:1 for large text
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Primary Colors */
    --color-primary-900: #081C15;
    --color-primary-800: #1B4332;
    --color-primary-700: #2D6A4F;
    --color-primary-600: #40916C;
    --color-primary-500: #52B788;
    --color-primary-400: #74C69D;
    --color-primary-300: #95D5B2;
    --color-primary-200: #B7E4C7;
    --color-primary-100: #D8F3DC;
    --color-primary-50: #F1FAF5;
    
    /* Accent Colors */
    --color-accent-900: #B8860B;
    --color-accent-800: #DAA520;
    --color-accent-700: #F4C430;
    --color-accent-600: #FFD60A;
    --color-accent-500: #FFE55C;
    --color-accent-400: #FFED8E;
    --color-accent-300: #FFF4B0;
    --color-accent-200: #FFF9D1;
    --color-accent-100: #FFFCE8;
    
    /* Neutral Colors */
    --color-gray-900: #081C15;
    --color-gray-800: #1C3A2E;
    --color-gray-700: #2F5847;
    --color-gray-600: #52796F;
    --color-gray-500: #74959A;
    --color-gray-400: #95B1B5;
    --color-gray-300: #B7CDD0;
    --color-gray-200: #D8E9EB;
    --color-gray-100: #EDF5F6;
    --color-gray-50: #F8FBFC;
    
    /* Semantic Colors */
    --color-success: #52B788;
    --color-warning: #FFD60A;
    --color-error: #DC2626;
    --color-info: #3B82F6;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--color-gray-900);
    background-color: var(--color-gray-50);
}

/* Custom Tailwind Classes */
.bg-primary {
    background-color: var(--color-primary-800);
}

.bg-primary-light {
    background-color: var(--color-primary-100);
}

.bg-accent {
    background-color: var(--color-accent-600);
}

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

.text-accent {
    color: var(--color-accent-700);
}

.border-primary {
    border-color: var(--color-primary-800);
}

.border-accent {
    border-color: var(--color-accent-600);
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary-800);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: var(--color-primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(27, 67, 50, 0.2);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.3);
}

.btn-accent {
    background-color: var(--color-accent-600);
    color: var(--color-gray-900);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-accent:hover {
    background-color: var(--color-accent-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(255, 214, 10, 0.3);
}

.btn-accent:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary-800);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid var(--color-primary-800);
}

.btn-outline:hover {
    background-color: var(--color-primary-800);
    color: white;
}

.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.3);
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-featured {
    border: 2px solid var(--color-accent-600);
}

/* Focus Indicators for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary-800);
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background-color: var(--color-primary-800);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-700);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--color-primary-100);
    border-top: 3px solid var(--color-primary-800);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: var(--color-primary-100);
    color: var(--color-primary-800);
}

.badge-accent {
    background-color: var(--color-accent-200);
    color: var(--color-accent-900);
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-error {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

