/*
Theme Name: ANR Volunteer Portal
Theme URI: 
Author: Shane Mayer
Description: A professional Volunteer Portal theme for Alliance for Nonprofit Resources.
Version: 1.0
Text Domain: anr-volunteer
*/

html, body {
    scroll-behavior: smooth !important;
}

:root {
    --primary-blue: #6897e5;
    --primary-blue-dark: #5686c4;
    --white: #ffffff;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0;
}

.site-branding {
    text-align: center;
    background-color: var(--white);
}

.site-banner {
    width: 100%;
    height: auto;
    display: block;
}

.main-navigation {
    background-color: var(--primary-blue);
    padding: 0.5rem 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-navigation a:hover {
    background-color: var(--primary-blue-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Cards (Opportunities) */
.opportunity-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.opportunity-thumbnail {
    flex: 0 0 150px;
    height: 150px;
    background-color: var(--bg-light);
    border-radius: 4px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opportunity-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.opportunity-content {
    flex: 1;
    min-width: 250px;
}

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

.opportunity-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.opportunity-card h2 a {
    text-decoration: none;
    color: var(--primary-blue);
}

.opportunity-card .meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-blue-dark);
}

/* Footer */
.site-footer {
    background-color: var(--text-main);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Profile specific */
.profile-wrap {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.profile-wrap table {
    width: 100%;
    border-collapse: collapse;
}
.profile-wrap th, .profile-wrap td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

/* --- Smooth Content & Image Animations --- */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.site-main {
    animation: slideUpFade 0.6s ease-out forwards;
}

.opportunity-card, .single-opportunity, .page-header {
    opacity: 0; /* Starts hidden until animation triggers */
    animation: slideUpFade 0.6s ease-out forwards;
}

.opportunity-card:nth-child(1) { animation-delay: 0.1s; }
.opportunity-card:nth-child(2) { animation-delay: 0.2s; }
.opportunity-card:nth-child(3) { animation-delay: 0.3s; }
.opportunity-card:nth-child(4) { animation-delay: 0.4s; }
.opportunity-card:nth-child(5) { animation-delay: 0.5s; }
.opportunity-card:nth-child(n+6) { animation-delay: 0.6s; }

article img, .site-banner {
    opacity: 0;
    animation: softFade 1s ease-out forwards;
    animation-delay: 0.1s;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .site-banner {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    .main-navigation li {
        width: 100%;
    }
    .main-navigation a {
        display: block;
        padding: 0.6rem 1rem;
        text-align: center;
        border-radius: 0;
    }
}
