/* ============================================
   Palisades AA Online - Static Site Styles
   ============================================ */

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

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

a {
    color: #2196F3;
    text-decoration: none;
}

a:hover {
    color: #1565C0;
}

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

/* ---- NAVBAR ---- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu > li > a {
    color: #1a237e;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
}

.nav-menu > li > a:hover {
    background: #e3f2fd;
    color: #0d47a1;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.caret {
    font-size: 10px;
    margin-left: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 550px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.dropdown-menu a:hover {
    background: #e3f2fd;
    color: #0d47a1;
}

.dropdown-menu a.active {
    background: #bbdefb;
    color: #0d47a1;
    font-weight: 700;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 6px 0;
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ---- HERO ---- */
.hero {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.5), rgba(0, 188, 212, 0.4));
}

.hero h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* ---- CONTENT ---- */
.content {
    padding: 40px 0 60px;
}

.page-title {
    font-size: 32px;
    color: #1a237e;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.track-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    font-weight: 500;
}

/* ---- TRACK GRID ---- */
.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.track-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.track-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Track thumbnail / still image card */
.track-image {
    position: relative;
}

.track-thumbnail {
    position: relative;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1565C0 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 100px;
}

.thumb-logo {
    width: 60px;
    height: auto;
    opacity: 0.9;
    filter: brightness(10);
}

.thumb-overlay {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thumb-year {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.thumb-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* Track info / player */
.track-info {
    padding: 16px 20px 20px;
}

.track-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.track-info audio {
    width: 100%;
    height: 36px;
    border-radius: 18px;
}

/* ---- HOME PAGE GRID ---- */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}

.home-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #333;
}

.home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: #333;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.home-card h3 {
    font-size: 18px;
    color: #1a237e;
    margin-bottom: 6px;
}

.home-card p {
    font-size: 14px;
    color: #666;
}

/* ---- ARCHIVE YEAR GRID ---- */
.archive-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.archive-section h3 {
    font-size: 22px;
    color: #1a237e;
    margin-bottom: 16px;
}

.year-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.year-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #1a237e, #1565C0);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.year-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
    color: #fff;
}

/* ---- BUTTONS ---- */
.btn-link {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1a237e, #1565C0);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.15s;
}

.btn-link:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* ---- FOOTER ---- */
.site-footer {
    background: #1a237e;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        gap: 4px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 12px 16px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px;
        max-height: 300px;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .track-grid {
        grid-template-columns: 1fr;
    }
    
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

/* In Memoriam Grid */
.memoriam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.memoriam-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

.memoriam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.memoriam-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1a365d;
}

.memoriam-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 768px) {
    .memoriam-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .memoriam-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- BLACK FOOTER ---- */
.site-footer {
    background: #000 !important;
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 40px 0 30px;
    font-size: 14px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-zoom {
    margin-bottom: 20px;
}

.footer-zoom h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-zoom a.zoom-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #2D8CFF;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.footer-zoom a.zoom-btn:hover {
    background: #1a6fdb;
}

.footer-phone {
    margin: 12px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-phone a {
    color: #90caf9;
    font-weight: 500;
}

.footer-phone a:hover {
    color: #fff;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 20px auto;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ---- NEW HOMEPAGE ---- */
.hero-home {
    padding: 0;
    height: auto;
    background: none;
}

.hero-home .hero-overlay {
    display: none;
}

.hero-home h1 {
    display: none;
}

.flyer-section {
    text-align: center;
    margin-bottom: 0;
}

.flyer-section img {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.church-section {
    text-align: center;
    margin: 40px 0 0;
}

.church-section img {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.meeting-info {
    max-width: 750px;
    margin: 30px auto 0;
    text-align: left;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.meeting-info h2 {
    color: #1a237e;
    font-size: 24px;
    margin-bottom: 6px;
}

.meeting-info .address {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
}

.meeting-info .parking {
    font-size: 15px;
    color: #555;
    margin-bottom: 4px;
}

.meeting-info .time {
    font-size: 18px;
    color: #0d47a1;
    font-weight: 700;
    margin: 12px 0;
}

.meeting-info .note {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.meeting-info .note strong {
    color: #333;
}

.meeting-info .zoom-info {
    margin-top: 20px;
    padding: 16px 20px;
    background: #e3f2fd;
    border-radius: 8px;
    text-align: center;
}

.meeting-info .zoom-info a {
    color: #0d47a1;
    font-weight: 700;
    font-size: 16px;
}

/* ---- DONATION POPUP ---- */
.donation-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.donation-overlay.active {
    display: flex;
}

.donation-popup {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 620px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.donation-popup .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.donation-popup .close-btn:hover {
    color: #333;
}

.donation-popup h2 {
    color: #1a237e;
    font-size: 22px;
    margin-bottom: 8px;
}

.donation-popup p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.donation-popup .qr-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 16px;
    display: block;
}

.donation-popup .venmo-link {
    display: inline-block;
    padding: 10px 28px;
    background: #008CFF;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.donation-popup .venmo-link:hover {
    background: #006fcc;
}

/* Donate floating button */
.donate-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #008CFF;
    color: #fff !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(0,140,255,0.4);
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    text-decoration: none;
}

.donate-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,140,255,0.5);
}

@media (max-width: 768px) {
    .meeting-info {
        padding: 20px;
        margin: 20px 10px 0;
    }
    .flyer-section img {
        border-radius: 0;
    }
    .church-section img {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .donation-popup {
        padding: 20px;
        max-height: 85vh;
        overflow: auto;
    }
}
