/* Opstad Tabernakel CMS - Stylesheet */

:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-alt: #f0f0f0;
    --text: #1a1a1a;
    --text-dim: #666666;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --border: #e5e5e5;
    --radius: 16px;
    --radius-sm: 8px;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-alt: #1a1a1a;
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --border: #262626;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

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

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: var(--border);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

/* Hero */
.hero {
    min-height: 90vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.hero-content {
    padding-top: 2rem;
}

.hero-cross {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Verse Carousel */
.verse-carousel {
    position: relative;
    min-height: 120px;
    margin-bottom: 2rem;
}

.verse-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dim);
}

.verse-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.verse-slide cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--accent);
    margin-top: 0.75rem;
}

.hero-actions {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: transparent;
    box-shadow: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

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

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    border-color: var(--accent);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-header svg {
    color: var(--accent);
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.card-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Event List */
.event-list {
    list-style: none;
}

.event-row {
    display: grid;
    grid-template-columns: 80px 50px 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.event-row:last-child {
    border-bottom: none;
}

.event-date {
    font-weight: 600;
    font-size: 0.85rem;
}

.event-time {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.event-title {
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

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

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.section-header a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Page Header */
.page-header {
    padding: 8rem 0 3rem;
    text-align: center;
    background: var(--bg-alt);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-dim);
}

/* Sermon Cards */
.sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.sermon-card {
    padding: 1.5rem;
}

.sermon-card h3, .sermon-card h4 {
    margin-bottom: 0.5rem;
}

.sermon-meta, .sermon-preacher {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.sermon-card audio {
    width: 100%;
    margin-top: 1rem;
}

.sermon-date {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Calendar */
.calendar-list {
    max-width: 700px;
    margin: 0 auto;
}

.calendar-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.calendar-date-box {
    min-width: 70px;
    text-align: center;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-sm);
}

.cal-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.cal-month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.calendar-info h3 {
    margin-bottom: 0.5rem;
}

.cal-time, .cal-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.cal-time svg, .cal-location svg {
    color: var(--accent);
}

/* Live */
.live-container {
    max-width: 800px;
    margin: 0 auto;
}

.live-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.live-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.live-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.live-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.live-placeholder h2 {
    margin-bottom: 0.5rem;
}

.live-placeholder p {
    color: var(--text-dim);
}

.live-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.live-info h3 {
    margin-bottom: 1rem;
}

.live-info ul {
    list-style: none;
    margin-bottom: 1rem;
}

.live-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

/* Page Content */
.page-content {
    max-width: 700px;
    margin: 0 auto;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.contact-card {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dim);
}

.contact-card svg {
    color: var(--accent);
}

.map-embed {
    margin-top: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-num {
    color: var(--text-dim);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        order: -1;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-open {
        display: flex;
    }

    .nav a {
        padding: 0.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .theme-toggle {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

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

    .calendar-item {
        flex-direction: column;
        gap: 1rem;
    }

    .calendar-date-box {
        align-self: flex-start;
    }
}
