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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.banner-message {
    flex: 1;
    min-width: 200px;
}

.banner-text {
    font-size: 0.95rem;
    font-weight: 500;
}

.banner-cta {
    color: white;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.banner-cta:hover {
    opacity: 0.8;
}

.banner-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.github-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.github-link svg {
    flex-shrink: 0;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

.site-header .logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.site-header .logo:hover {
    opacity: 0.9;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.intro h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Controls */
.controls {
    background-color: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sorting {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
    min-width: 200px;
}

select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Aid List */
.aid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.aid-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aid-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.aid-card.hidden {
    display: none;
}

.aid-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.aid-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.aid-description {
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.aid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: var(--background-alt);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.aid-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.aid-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.aid-link:hover {
    background-color: #2980b9;
}

/* Related Resources Section */
.related-resources {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.related-resources h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.related-resources p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.resource-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resource-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.resource-list a:hover {
    text-decoration: underline;
}

.resource-description {
    display: block;
    color: var(--text-color);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contribute Section */
.contribute {
    background-color: var(--background-alt);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.contribute h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contribute a {
    color: var(--secondary-color);
    font-weight: 600;
}

.contribute a:hover {
    text-decoration: none;
}

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

.site-footer p {
    margin: 0.5rem 0;
}

.site-footer a {
    color: white;
    text-decoration: underline;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .banner-text {
        font-size: 0.9rem;
    }

    .banner-links {
        width: 100%;
        justify-content: flex-start;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        flex-direction: column;
    }

    .aid-list {
        grid-template-columns: 1fr;
    }

    select {
        min-width: 100%;
    }
}
