/**
 * Arizona Diaper Bank - Main Stylesheet
 * Author: Harold Gaines
 * Color Scheme: White, Red (#dc2626), Black (#000000)
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #000000;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
}

.logo {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.container {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    background: #f8f8f8;
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-section h2 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.welcome-section p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.qr-section {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.qr-section h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.qr-code {
    width: 250px;
    height: 250px;
    margin: 1rem auto;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #dc2626;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #dc2626;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: #000000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
    transform: translateY(-1px);
}

.staff-access {
    background: #f8f8f8;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.staff-access h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
}

.language-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid #dc2626;
}

.language-selector select {
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    color: #000000;
    font-weight: 500;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 0;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.2);
}

.info-card h4 {
    background-color: #dc2626;
    color: #ffffff;
    margin: 0;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 2px solid #000000;
}

.info-card p {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 1.5rem;
    margin: 0;
}

.intake-section {
    background: #ffffff;
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.intake-section p {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn-signin {
    background-color: #dc2626;
    color: #ffffff;
    padding: 1rem 3rem;
    border: 3px solid #000000;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-signin:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.button-group-center {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.emergency-notice {
    background-color: #dc2626;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

/* Loading animation */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ffffff;
    border-top: 5px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.25rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .qr-code {
        width: 200px;
        height: 200px;
    }
    
    .language-selector {
        position: absolute;
        margin-bottom: 1rem;
        border: 1px solid #dc2626;
    }
}

/* RTL Support */
[dir="rtl"] .language-selector {
    left: 1rem;
    right: auto;
}

[dir="rtl"] .info-cards {
    direction: rtl;
}

[dir="rtl"] .button-group {
    direction: rtl;
}

/* Print Styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    .btn-primary, .btn-secondary {
        display: none;
    }
    
    .qr-section {
        page-break-inside: avoid;
    }
}