/* Base Styles */
:root {
    --primary: #1f5d4d;
    --primary-dark: #18483c;
    --secondary: #2f7d6a;
    --accent: #b08b4f;
    --dark: #1f2937;
    --gray: #5f6b66;
    --light: #e9eeeb;
    --white: #f3f6f4;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #edf2ef 0%, var(--light) 100%);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-auth {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    width: min(440px, 92vw);
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-sub {
    color: var(--gray);
    margin-bottom: 0.8rem;
    font-size: 0.92rem;
}

.auth-form {
    display: grid;
    gap: 0.7rem;
}

.auth-form input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.7rem;
    font: inherit;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-content .modal-close {
    position: absolute;
    right: 0.65rem;
    top: 0.4rem;
}

.profile-drawer {
    position: fixed;
    right: -370px;
    top: 0;
    height: 100%;
    width: min(360px, 92vw);
    background: var(--white);
    box-shadow: -10px 0 20px rgba(0,0,0,0.15);
    transition: right 0.25s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.profile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.drawer-content {
    padding: 1rem;
    overflow: auto;
}

.drawer-content h4 {
    margin: 1rem 0 0.45rem;
}

.drawer-content label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.profile-note {
    color: var(--gray);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
}

.family-form {
    display: grid;
    gap: 0.55rem;
}

.family-form input,
.family-form select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.58rem;
    font: inherit;
}

.family-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.family-list {
    margin: 0.75rem 0 1rem;
    display: grid;
    gap: 0.45rem;
}

.family-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.55rem 0.6rem;
    background: #f9fafb;
    font-size: 0.88rem;
    color: var(--gray);
}

/* Header */
.header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    font-size: 1.5rem;
}

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

.nav a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Digest */
.digest {
    padding: 3rem 0;
    background: var(--white);
}

.digest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.digest-card {
    background: var(--light);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.digest-card h3 {
    margin: 0.6rem 0 0.75rem;
    font-size: 1.05rem;
}

.digest-card ul {
    margin-left: 1rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.digest-card li {
    margin-bottom: 0.5rem;
}

.digest-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--primary);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}

.digest-pill.weekend {
    background: var(--secondary);
}

.digest-pill.coupons {
    background: var(--accent);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2a6f5b 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .highlight {
    background: linear-gradient(90deg, #fde047, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.search-icon {
    font-size: 1.25rem;
    opacity: 0.5;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--dark);
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tag {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.tag:hover {
    background: rgba(255,255,255,0.3);
}

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Directory */
.directory {
    padding: 5rem 0;
    background: var(--white);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.audience-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

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

.audience-btn {
    padding: 0.45rem 0.9rem;
    border: 1px solid #d1d5db;
    background: var(--white);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.2s;
}

.audience-btn:hover,
.audience-btn.active {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.08);
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--light);
    background: var(--light);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--gray);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.listing-image {
    height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
}

.listing-category {
    background: rgba(255,255,255,0.9);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

.listing-content {
    padding: 1.25rem;
}

.listing-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.listing-address {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.listing-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
}

.rating {
    color: var(--accent);
    font-weight: 600;
}

.view-all {
    text-align: center;
}

/* Community Support */
.community-support {
    padding: 4rem 0;
    background: #f8fafc;
}

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

.support-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.support-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
}

.support-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

/* Events */
.events {
    padding: 5rem 0;
    background: var(--light);
}

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

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card.featured {
    border: 2px solid var(--primary);
}

.event-date {
    flex-shrink: 0;
    width: 60px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.event-date .month {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-content {
    flex: 1;
}

.event-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.event-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-time,
.event-location {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.calendar-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    list-style: none;
}

.about-stats li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
    font-size: 1.1rem;
}

.about-stats strong {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #2a6f5b 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-card .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-card .btn-primary:hover {
    background: var(--light);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 0.35rem 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background: var(--white);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#local-map {
    height: 450px;
    width: 100%;
    background: var(--light);
}

/* Lost Pets */
.lost-pets {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.lost-pets .section-header h2 {
    color: var(--dark);
}

.lost-pets .section-header p {
    color: rgba(0,0,0,0.6);
}

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

.pet-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pet-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff4757;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 1;
}

.pet-badge.found {
    background: #2ed573;
}

.pet-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-emoji {
    font-size: 3.5rem;
}

.pet-content {
    padding: 1.25rem;
}

.pet-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pet-details {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.pet-location,
.pet-date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.pet-content .btn-small {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.pets-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .digest-grid,
    .featured-strip {
        grid-template-columns: 1fr;
    }

    .featured-mini {
        grid-template-columns: 1fr;
    }

    .featured-mini img {
        height: 180px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box .btn {
        width: 100%;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 1rem;
    }
}
ive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box .btn {
        width: 100%;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 1rem;
    }
}
