/* Veggie Rescue Website Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.brand-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cover-photo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.3);
}

.cover-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
}

.brand-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    font-size: 2rem;
    color: #2d5a27;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section h3 {
    font-size: 1.5rem;
    color: #2d5a27;
    margin-bottom: 1.5rem;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.dashboard-card h4 {
    color: #2d5a27;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Special styling for 90 Day Deliveries Dashboard */

.dashboard-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.dashboard-link {
    background: #4a7c59;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.dashboard-link:hover {
    background: #2d5a27;
}

.dashboard-section .dashboard-grid .dashboard-card.deliveries-90-day h4 {
    color: #8a4974 !important;
}

.dashboard-section .dashboard-grid .dashboard-card.deliveries-90-day .dashboard-link {
    background: #8a4974 !important;
}

.dashboard-section .dashboard-grid .dashboard-card.deliveries-90-day .dashboard-link:hover {
    background: #6d3a5c !important;
}

/* Info Section (Stats) */
.info-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.info-section h3 {
    color: #2d5a27;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4a7c59;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.update-note {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer Styles */
.footer {
    background: #2d5a27;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

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

/* Utility Classes for Future Use */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* Color Variables for Consistency */
:root {
    --primary-dark: #2d5a27;
    --primary-light: #4a7c59;
    --background-light: #f8f9fa;
    --text-dark: #333;
    --text-muted: #666;
    --text-light: #888;
    --white: #ffffff;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
}

/* Future Dashboard Card Variations */
.dashboard-card.featured {
    border: 2px solid var(--primary-light);
    transform: scale(1.02);
}

.dashboard-card.urgent {
    border-left: 4px solid #dc3545;
}

.dashboard-card.success {
    border-left: 4px solid #28a745;
}

.dashboard-card.warning {
    border-left: 4px solid #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .brand-text h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content,
    .main-content,
    .footer-content {
        padding: 0 1rem;
    }

    .brand-text h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .cover-photo-placeholder {
        width: 60px;
        height: 60px;
    }

    .dashboard-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header {
        background: none !important;
        color: black !important;
    }

    .dashboard-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .dashboard-link {
        background: none;
        color: black;
        text-decoration: underline;
    }
}
