/* NELA Bitcoiners - Main Stylesheet */

/* CSS Variables */
:root {
    --bitcoin-orange: #F7931A;
    --bitcoin-orange-dark: #E8850F;
    --bitcoin-orange-light: #FFB347;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1a;
    --card-bg: #252542;
    --text-light: #ffffff;
    --text-muted: #b8b8c8;
    --text-gray: #8888a0;
    --success-green: #00d395;
    --gradient-orange: linear-gradient(135deg, #F7931A 0%, #FFB347 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-orange: 0 4px 30px rgba(247, 147, 26, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gradient-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--bitcoin-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--bitcoin-orange-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(247, 147, 26, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo span {
    color: var(--bitcoin-orange);
}

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

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bitcoin-orange);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--darker-bg);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 40px rgba(247, 147, 26, 0.4);
    color: var(--darker-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--bitcoin-orange);
}

.btn-secondary:hover {
    background: var(--bitcoin-orange);
    color: var(--darker-bg);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid rgba(247, 147, 26, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--bitcoin-orange);
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--bitcoin-orange);
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(247, 147, 26, 0.3);
}

.hero-image-placeholder svg {
    width: 100px;
    height: 100px;
    opacity: 0.5;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(247, 147, 26, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: rgba(247, 147, 26, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bitcoin-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 147, 26, 0.2);
    box-shadow: var(--shadow-soft);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(247, 147, 26, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--bitcoin-orange);
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.event-card:hover {
    border-color: rgba(247, 147, 26, 0.3);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 1rem;
    background: rgba(247, 147, 26, 0.1);
    border-radius: var(--border-radius);
}

.event-date .day {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bitcoin-orange);
    line-height: 1;
}

.event-date .month {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.event-content p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Team/About Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--card-bg);
    border: 3px solid rgba(247, 147, 26, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar svg {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}

.team-member h4 {
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.resource-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 147, 26, 0.3);
}

.resource-image {
    height: 180px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-image svg {
    width: 60px;
    height: 60px;
    color: var(--bitcoin-orange);
    opacity: 0.7;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-content {
    padding: 1.5rem;
}

.resource-content h4 {
    margin-bottom: 0.5rem;
}

.resource-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.resource-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(247, 147, 26, 0.1);
    color: var(--bitcoin-orange);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--bitcoin-orange);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Contact Form */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 100%;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-details li span {
    min-width: 0;
    flex: 1;
}

.contact-details svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--bitcoin-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: var(--bitcoin-orange);
    transform: translateY(-3px);
}

.social-links svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Newsletter */
.newsletter {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(247, 147, 26, 0.2);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
}

.cf-turnstile {
    margin-top: 0.75rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Page Header */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(247, 147, 26, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(247, 147, 26, 0.1);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom .social-links a {
    width: 40px;
    height: 40px;
}

/* Bitcoin Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .features-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid rgba(247, 147, 26, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: flex;
    }

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

    .features-grid,
    .events-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .newsletter {
        padding: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-section > div {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .hero-image-placeholder {
        min-height: 150px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-orange { color: var(--bitcoin-orange); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Event Card Link */
.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card-link:hover .event-card {
    border-color: rgba(247, 147, 26, 0.5);
    transform: translateY(-3px);
}

.event-card-link:hover {
    color: inherit;
}

/* Event Detail Page */
.event-detail {
    max-width: 900px;
    margin: 0 auto;
}

.event-detail-header {
    margin-bottom: 2rem;
}

.event-detail-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-detail-meta .resource-tag.past {
    background: rgba(136, 136, 160, 0.2);
    color: var(--text-gray);
}

.event-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.event-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.event-detail-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.event-detail-info .info-item svg {
    color: var(--bitcoin-orange);
    flex-shrink: 0;
}

.map-link {
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

/* Event Gallery */
.event-gallery {
    margin: 2rem 0;
}

.gallery-main {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--card-bg);
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--bitcoin-orange);
}

/* Event Content */
.event-detail-content {
    margin: 2rem 0;
}

.short-desc {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.long-desc {
    color: var(--text-muted);
    line-height: 1.8;
}

.long-desc h2, .long-desc h3 {
    color: var(--text-light);
    margin-top: 2rem;
}

.long-desc ul, .long-desc ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.long-desc p {
    margin-bottom: 1rem;
}

/* Event Recap */
.event-recap {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--bitcoin-orange);
}

.event-recap h3 {
    color: var(--bitcoin-orange);
    margin-bottom: 1rem;
}

.recap-content {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Event Actions */
.event-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Event Detail */
@media (max-width: 768px) {
    .event-detail-header h1 {
        font-size: 1.75rem;
    }

    .event-detail-info {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-main img {
        max-height: 300px;
    }

    .event-detail-actions {
        flex-direction: column;
    }

    .event-detail-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Bitcoin Ticker */
.btc-ticker {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem;
    width: 100%;
}

.btc-ticker-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btc-ticker-icon svg {
    width: 52px;
    height: 52px;
}

.btc-price {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.btc-change {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.btc-change.is-up   { color: var(--success-green); background: rgba(0, 211, 149, 0.12); }
.btc-change.is-down { color: var(--danger-red);    background: rgba(255, 92, 92, 0.12); }

.btc-chart {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btc-chart svg {
    display: block;
    width: 100%;
    height: 56px;
}

.btc-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btc-blocks > .btc-label {
    text-align: right;
}

.btc-blocks-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 7px;   /* room for the cubes' 3D top faces */
    padding-right: 7px; /* room for the last cube's 3D side face */
}

/* Mini isometric block cubes, mempool.space-style (drawn in CSS, data via their API) */
.btc-block-cube {
    position: relative;
    width: 22px;
    height: 22px;
    background: linear-gradient(to bottom right, #9339f4, #105fb0);
    transition: var(--transition);
}

.btc-block-cube::before {
    /* top face */
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(to right, #b57aff, #4d7fd6);
    transform: skewX(-45deg);
    transform-origin: bottom left;
}

.btc-block-cube::after {
    /* side face */
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    width: 7px;
    height: 100%;
    background: linear-gradient(to bottom, #5b1fb0, #0c3f76);
    transform: skewY(-45deg);
    transform-origin: top left;
}

.btc-block-cube:hover {
    transform: translateY(-3px);
    filter: brightness(1.35);
}

.btc-block-cube.is-tip {
    background: linear-gradient(to bottom right, #FFB347, #E8850F);
    box-shadow: 0 0 14px rgba(247, 147, 26, 0.55);
}

.btc-block-cube.is-tip::before {
    background: linear-gradient(to right, #ffd28f, #f5a53f);
}

.btc-block-cube.is-tip::after {
    background: linear-gradient(to bottom, #c76f08, #9e5a08);
}

.btc-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btc-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    font-family: 'Inter', monospace;
}

.btc-value.loading {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .btc-ticker {
        gap: 1rem;
    }

    .btc-ticker-icon svg {
        width: 44px;
        height: 44px;
    }

}

/* Blog Posts */
.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.blog-post-author {
    color: var(--bitcoin-orange);
}

.blog-post-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content h2 {
    font-size: 1.5rem;
}

.blog-post-content h3 {
    font-size: 1.25rem;
}

.blog-post-content p {
    margin-bottom: 1rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--bitcoin-orange);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-post-content code {
    background: var(--darker-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.blog-post-content pre {
    background: var(--darker-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

.blog-post-content a {
    color: var(--bitcoin-orange);
}

.blog-post-content a:hover {
    color: var(--bitcoin-orange-light);
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.load-more-btn {
    min-width: 200px;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Article Pages */
.article {
    max-width: 780px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.article h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
}

.article h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--bitcoin-orange-light);
}

.article ul, .article ol {
    margin: 0 0 1rem 1.5rem;
    color: var(--text-muted);
}

.article li {
    margin-bottom: 0.5rem;
}

.article .callout {
    background: var(--card-bg);
    border-left: 4px solid var(--bitcoin-orange);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.article .callout p {
    margin-bottom: 0;
}

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

/* ==========================================================================
   Security advisory / explainer visuals
   Used by pages/coldcard-vulnerability.html
   ========================================================================== */

:root {
    --danger-red: #ff5c5c;
    --warning-amber: #FFB347;
}

/* Alert banner */
.alert-banner {
    background: rgba(255, 92, 92, 0.1);
    border: 1px solid rgba(255, 92, 92, 0.45);
    border-left: 5px solid var(--danger-red);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.alert-banner h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--danger-red);
}

.alert-banner p:last-child {
    margin-bottom: 0;
}

/* Figure wrapper for every diagram */
.viz {
    margin: 2.5rem 0;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    overflow-x: auto;
}

.viz-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.viz-svg {
    display: block;
    width: 100%;
    height: auto;
    min-width: 280px;
}

.viz-caption {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Status chips */
.chip {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.chip-danger  { background: rgba(255, 92, 92, 0.18);  color: var(--danger-red); }
.chip-warning { background: rgba(255, 179, 71, 0.18); color: var(--warning-amber); }
.chip-safe    { background: rgba(0, 211, 149, 0.18);  color: var(--success-green); }

/* Time-to-crack bars */
.crack-item {
    margin-bottom: 1.5rem;
}

.crack-item:last-of-type {
    margin-bottom: 0;
}

.crack-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.crack-bits {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light);
}

.crack-track {
    background: rgba(15, 15, 26, 0.6);
    border-radius: 6px;
    height: 1.9rem;
    overflow: hidden;
}

.crack-fill {
    height: 100%;
    border-radius: 6px;
}

.crack-text {
    margin-top: 0.45rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.crack-40  { width: 31%;  background: var(--danger-red); }
.crack-72  { width: 56%;  background: var(--warning-amber); }
.crack-128 { width: 100%; background: var(--success-green); }

/* Vertical timeline */
.vuln-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.75rem;
    border-left: 2px solid rgba(184, 184, 200, 0.25);
}

.vuln-timeline li {
    position: relative;
    padding-bottom: 1.75rem;
    color: var(--text-muted);
}

.vuln-timeline li:last-child {
    padding-bottom: 0;
}

.vuln-timeline li::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.35rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--bitcoin-orange);
    border: 3px solid var(--card-bg);
}

.vuln-timeline li.is-bad::before  { background: var(--danger-red); }
.vuln-timeline li.is-good::before { background: var(--success-green); }

.vuln-timeline .when {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-gray);
    margin-bottom: 0.15rem;
}

.vuln-timeline .what {
    display: block;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

/* Decision flow */
.flow-step {
    border: 1px solid rgba(184, 184, 200, 0.18);
    border-radius: var(--border-radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.85rem;
    background: rgba(15, 15, 26, 0.45);
}

.flow-q {
    font-weight: 700;
    color: var(--bitcoin-orange-light);
    margin-bottom: 0.75rem;
}

.flow-answer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.flow-answer + .flow-answer {
    border-top: 1px dashed rgba(184, 184, 200, 0.15);
}

.flow-arrow {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin: 0 0 0.85rem;
}

/* Version table */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.version-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.version-table th,
.version-table td {
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(184, 184, 200, 0.15);
    color: var(--text-muted);
    vertical-align: top;
}

.version-table th {
    color: var(--text-light);
    font-weight: 700;
    white-space: nowrap;
}

.version-table td code {
    background: rgba(15, 15, 26, 0.7);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--bitcoin-orange-light);
}

/* Numbered action steps */
.action-steps {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
    counter-reset: step;
}

.action-steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.5rem 3.5rem;
    color: var(--text-muted);
}

.action-steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--gradient-orange);
    color: var(--darker-bg);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-steps h3 {
    margin: 0.35rem 0 0.4rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .viz {
        padding: 1.1rem;
    }
}

/* Two-panel "what was checked vs what wasn't" comparison */
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.check-panel {
    border-radius: var(--border-radius);
    padding: 1.25rem;
    background: rgba(15, 15, 26, 0.45);
    border: 1px solid rgba(184, 184, 200, 0.18);
}

.check-panel.is-ok   { border-color: rgba(0, 211, 149, 0.4); }
.check-panel.is-miss { border-color: rgba(255, 92, 92, 0.45); }

.check-panel h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-gray);
    margin-bottom: 0.6rem;
}

.check-panel p {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.check-mark {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.check-panel.is-ok .check-mark   { color: var(--success-green); }
.check-panel.is-miss .check-mark { color: var(--danger-red); }

/* Small security notice link in the hero.
   Hidden until main.js confirms its data-expires date hasn't passed, so it
   disappears on its own and never flashes on screen before being removed. */
.hero-notice {
    display: none;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding: 0.55rem 1rem 0.55rem 0.65rem;
    border: 1px solid rgba(255, 92, 92, 0.3);
    border-radius: 999px;
    background: rgba(255, 92, 92, 0.07);
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.35;
    transition: var(--transition);
}

.hero-notice.is-visible {
    display: inline-flex;
}

.hero-notice:hover {
    color: var(--text-light);
    border-color: rgba(255, 92, 92, 0.6);
    background: rgba(255, 92, 92, 0.12);
}

.hero-notice-arrow {
    color: var(--danger-red);
    font-weight: 700;
    transition: var(--transition);
}

.hero-notice:hover .hero-notice-arrow {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .hero-notice {
        align-items: flex-start;
        border-radius: var(--border-radius);
    }

    .hero-notice-arrow {
        display: none;
    }
}

/* ==========================================================================
   Article illustration images
   Used by pages/op-return-memo-line.html
   ========================================================================== */

.article-img {
    margin: 2.5rem 0;
}

.article-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-bg);
}

.article-img figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}
