/* Wilde Acres Community Platform - Stylesheet */

:root {
    --primary: #2c5f2d;
    --primary-light: #4a7c59;
    --secondary: #8b6914;
    --accent: #d97706;
    --alert: #dc2626;
    --bg: #f9fafb;
    --bg-light: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
    text-align: center;
}

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

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

/* Buttons */
.button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
}

.button:hover {
    background: var(--primary-light);
}

.button.secondary {
    background: var(--text-light);
}

.button.secondary:hover {
    background: var(--text);
}

.button.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

/* About Section */
.about {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.principle {
    padding: 1rem;
    background: var(--bg);
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.principle strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Quick Links */
.quick-links {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.quick-links h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.quick-links a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    color: var(--primary);
}

/* Form Container */
.form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 2px solid var(--primary);
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* Post Cards */
.posts {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.category-badge.large {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.post-card.category-alert .category-badge {
    background: var(--alert);
}

.post-card.category-help .category-badge {
    background: var(--accent);
}

.post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-card h3 {
    margin-bottom: 0.5rem;
}

.post-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-content {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.author,
.organizer {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Resources */
.resources-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.resource-card,
.request-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.resource-header,
.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.type-badge,
.urgency-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.urgency-badge.urgency-emergency {
    background: var(--alert);
}

.urgency-badge.urgency-high {
    background: var(--accent);
}

.times-shared {
    font-size: 0.85rem;
    color: var(--text-light);
}

.resource-description {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.resource-footer,
.request-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.conditions {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Events */
.events-list {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.event-type-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.event-type-badge.large {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.event-card.type-work_party .event-type-badge {
    background: var(--primary);
}

.event-card.type-emergency .event-type-badge {
    background: var(--alert);
}

.event-date {
    color: var(--text-light);
    font-weight: 500;
}

.event-card h3 {
    margin-bottom: 0.75rem;
}

.event-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.event-card h3 a:hover {
    color: var(--primary);
}

.event-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.event-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.detail {
    font-size: 0.9rem;
    color: var(--text-light);
}

.bring-items {
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.rsvp-summary {
    display: flex;
    gap: 1rem;
}

.rsvp-count {
    font-size: 0.9rem;
    font-weight: 500;
}

.rsvp-count.yes {
    color: var(--primary);
}

.rsvp-count.maybe {
    color: var(--accent);
}

/* Post/Event Detail Pages */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.post-detail,
.event-detail {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-meta,
.event-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.visibility,
.max-participants {
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-content-full,
.event-description-full {
    line-height: 1.8;
    white-space: pre-wrap;
}

.event-details-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item {
    padding: 1rem;
    background: var(--bg);
    border-radius: 6px;
}

.detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

/* Responses */
.responses-section,
.rsvp-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.responses-section h2,
.rsvp-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.responses-list,
.rsvps-list {
    margin-bottom: 2rem;
}

.response-card,
.rsvp-card {
    background: var(--bg);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
}

.response-header,
.rsvp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.response-author,
.participant {
    font-weight: 500;
}

.response-date,
.rsvp-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.response-content,
.rsvp-notes {
    margin-top: 0.5rem;
    line-height: 1.6;
}

.rsvp-status-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.rsvp-card.status-no .rsvp-status-badge {
    background: var(--text-light);
}

.rsvp-card.status-maybe .rsvp-status-badge {
    background: var(--accent);
}

.respond-form,
.rsvp-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.rsvp-summary-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 8px;
}

.rsvp-stat {
    text-align: center;
}

.rsvp-stat .count {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.rsvp-stat.yes .count {
    color: var(--primary);
}

.rsvp-stat.maybe .count {
    color: var(--accent);
}

.rsvp-stat.no .count {
    color: var(--text-light);
}

.rsvp-stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

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

footer .small {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .resources-container {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-footer,
    .post-footer,
    .resource-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .rsvp-summary-bar {
        flex-direction: column;
        gap: 1rem;
    }
}
