:root {
    --bitcoin-orange: #ff7e02;
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --card-bg: #2a2a2a;
}

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

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

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

/* Header & Navigation */
header {
    background-color: rgba(26, 26, 26, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--bitcoin-orange);
}

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

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

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

.logo h1 {
    color: var(--bitcoin-orange);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--bitcoin-orange);
}

/* Hero Section */
.hero {
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.85) 100%),
        url('../images/slider-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    height: 250px;
    width: auto;
    margin-bottom: 2rem;
}

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

.tagline {
    font-size: 1.3rem;
    color: var(--gray-text);
}

/* Featured Meetup */
.featured-meetup {
    padding: 4rem 20px;
    background-color: var(--dark-bg);
}

.featured-meetup h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--bitcoin-orange);
}

.meetup-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--bitcoin-orange);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.meetup-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--bitcoin-orange);
}

.meetup-card .date {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.meetup-card .description {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Educational Content */
.educational {
    padding: 4rem 20px;
    background:
        linear-gradient(135deg, rgba(34, 34, 34, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%),
        url('../images/slider-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.educational h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--light-text);
}

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

.content-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 126, 2, 0.2);
}

.content-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.content-card h3 {
    color: var(--bitcoin-orange);
    margin: 1rem 1.5rem 0.5rem 1.5rem;
    font-size: 1.3rem;
}

.content-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin: 0 1.5rem 1.5rem 1.5rem;
}

/* Nostr Feed */
.nostr-feed {
    padding: 4rem 20px;
    background-color: var(--dark-bg);
}

.nostr-feed h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--bitcoin-orange);
}

#nostr-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    min-height: 300px;
}

/* Footer */
footer {
    background-color: #111;
    padding: 2rem 20px;
    text-align: center;
    border-top: 2px solid var(--bitcoin-orange);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--gray-text);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--bitcoin-orange);
}

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

.copyright {
    font-size: 0.85rem;
    color: #666;
}

.admin-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.admin-link:hover {
    color: var(--bitcoin-orange);
}

/* Archive Pages */
.archive-page {
    padding: 4rem 20px;
    background-color: var(--dark-bg);
    min-height: 70vh;
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-header h1 {
    font-size: 2.5rem;
    color: var(--bitcoin-orange);
    margin-bottom: 1rem;
}

/* Post Page */
.post-page {
    padding: 4rem 20px;
    background-color: var(--dark-bg);
    min-height: 70vh;
}

.post-header {
    margin-bottom: 3rem;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--bitcoin-orange);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-meta .date,
.post-meta .location {
    display: inline-block;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
}

.post-body .lead {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-body h2 {
    color: var(--bitcoin-orange);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body h3 {
    color: var(--light-text);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body a {
    color: var(--bitcoin-orange);
    text-decoration: underline;
}

.post-body a:hover {
    color: #e67002;
}

.post-error {
    text-align: center;
    padding: 4rem 2rem;
}

.post-error h1 {
    color: var(--bitcoin-orange);
    margin-bottom: 1rem;
}

.archive-header .subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    color: var(--bitcoin-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: #e67002;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.archive-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 126, 2, 0.2);
}

.meetup-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.archive-card .card-content {
    padding: 1.5rem;
}

.archive-card h3 {
    color: var(--bitcoin-orange);
    margin-bottom: 0.5rem;
}

.archive-card .date {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.archive-card .location {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.archive-card .description {
    color: var(--light-text);
    line-height: 1.6;
}

.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-text);
    grid-column: 1 / -1;
}

.view-all-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid var(--bitcoin-orange);
    color: var(--bitcoin-orange);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-all-link:hover {
    background-color: var(--bitcoin-orange);
    color: var(--dark-bg);
}

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

.section-header-with-link h2 {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .bitcoin-symbol {
        font-size: 5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

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

    .section-header-with-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .archive-header h1 {
        font-size: 2rem;
    }
}
