/* 
==========================================================================
   Bitcoin Data Labs — Landing Page Specific Styles
   (This file should NOT be imported by child applications)
==========================================================================
*/

/* Main Site Layout (Scoped to avoid conflicts with apps) */
.bdl-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* ═══ Hero Section — Dimmed Data Aesthetic ═══ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 360px;
    background: #18212f;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.hero-bg-pattern {
    position: absolute;
    right: 0;
    top: 0;
    width: 62%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            #18212f 28%,
            rgba(5, 7, 10, 0.92) 52%,
            rgba(5, 7, 10, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 3rem;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 1rem 0;
}

.hero-headline {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-headline span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin: 0;
    padding: 0;
}

/* Legacy BDL styles - scoped or removed */
.bdl-internal-header {
    display: none;
}

/* Section styles */
.section {
    margin: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--primary), var(--accent-cool)) 1;
    padding-bottom: 0.7rem;
    display: flex;
    align-items: center;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.section-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* List container for dashboards and mini-books */
.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Open Data Hub specific style */
#data-hub .list-container {
    grid-template-columns: 1fr;
}

.list-item {
    background: var(--bg-primary);
    border-radius: 2px;
    padding: 1.4rem 1.75rem;
    border: 1px solid rgba(42, 51, 66, 0.12);
    border-left: 3px solid transparent;
    position: relative;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.list-item:hover {
    border-left-color: var(--primary);
    background: var(--bg-secondary);
}

.list-item.selected {
    box-shadow: 0 0 0 2px rgba(232, 145, 107, 0.15);
    border-color: var(--accent-warm);
    position: relative;
}

.list-item.selected::after {
    content: '';
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    background: var(--accent-warm);
    border-radius: 50%;
    opacity: 0.35;
    box-shadow: 0 2px 8px rgba(var(--shadow-primary, 232, 145, 107), 0.10);
    pointer-events: none;
}

.list-item h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-item h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.list-item h3 a:hover {
    color: var(--primary);
}

/* Stretched link — whole card clickable */
.list-item h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

/* Keep badges above the stretched link overlay */
.list-item .badge {
    position: relative;
    z-index: 1;
}

.list-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Badge styles */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 500;
    vertical-align: middle;
}

.badge-platform {
    background-color: var(--accent-cool);
    color: white;
}

.badge-independent {
    background-color: var(--text-secondary);
    opacity: 0.7;
    color: white;
}

.badge-live {
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.55);
    color: #16a34a;
    padding-left: 1.35rem;
    position: relative;
    opacity: 1;
}

.badge-live::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
}

/* Tools list */
.tools-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tools-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.tools-list li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.tools-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Social links */
.social-links {
    text-align: center;
    margin: 4rem 0;
}

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

.social-icon {
    font-size: 1.5rem;
    color: var(--accent-cool);
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════
   THREE PILLARS SECTION
═══════════════════════════════════════════════ */
.pillars-section {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(42, 51, 66, 0.1);
    border-bottom: 1px solid rgba(42, 51, 66, 0.1);
    padding: 0 2rem;
}

.pillars-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0 auto;
}

.pillar-card {
    padding: 3rem 2.5rem;
    border-right: 1px solid rgba(42, 51, 66, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pillar-card:last-child {
    border-right: none;
}

.pillar-accent-bar {
    width: 28px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 1.5rem;
}

.pillar-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.6rem 0;
}

.pillar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pillar-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.pillar-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
    padding-top: 2rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pillar-cta:hover {
    color: var(--secondary);
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .pillars-inner {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        border-right: none;
        border-bottom: 1px solid rgba(42, 51, 66, 0.1);
        padding: 2.25rem 1.5rem;
    }

    .pillar-card:last-child {
        border-bottom: none;
    }
}

/* ═══════════════════════════════════════════════
   THE LAB IN ACTION — SHOWCASE
═══════════════════════════════════════════════ */
.lab-showcase.section {
    margin-top: 5rem;
}

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

.showcase-card {
    border: 1px solid rgba(42, 51, 66, 0.14);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-primary);
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.showcase-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.showcase-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.4s ease;
}

/* Image Slider Animations */
.showcase-img-slider {
    position: relative;
    width: 100%;
}

.showcase-img-slider img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* 2-Image Crossfade */
.slider-2 img {
    animation: fade2 8s infinite;
}
.slider-2 img:nth-child(1) { animation-delay: 0s; }
.slider-2 img:nth-child(2) { animation-delay: 4s; }

@keyframes fade2 {
    0%, 40% { opacity: 1; transform: scale(1); }
    50%, 100% { opacity: 0; transform: scale(1.02); }
}

/* 3-Image Crossfade */
.slider-3 img {
    animation: fade3 12s infinite;
}
.slider-3 img:nth-child(1) { animation-delay: 0s; }
.slider-3 img:nth-child(2) { animation-delay: 4s; }
.slider-3 img:nth-child(3) { animation-delay: 8s; }

@keyframes fade3 {
    0%, 25% { opacity: 1; transform: scale(1); }
    33%, 100% { opacity: 0; transform: scale(1.02); }
}

.showcase-card:hover .showcase-img img {
    /* Let the animation handle scale so hover doesn't break crossfade */
}

.showcase-card:hover .showcase-img > img:not(.slider-img) {
    transform: scale(1.04);
}

.showcase-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cool);
    border-bottom: 1px solid rgba(42, 51, 66, 0.08);
    background:
        repeating-linear-gradient(45deg,
            rgba(42, 51, 66, 0.03),
            rgba(42, 51, 66, 0.03) 10px,
            transparent 10px,
            transparent 20px),
        var(--bg-secondary);
}

.showcase-body {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.showcase-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}
/* ═══════════════════════════════════════════════
   RESOURCES SECTION (Tools + Books side-by-side)
═══════════════════════════════════════════════ */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.resource-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1.25rem 0;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--bg-secondary);
}

.resource-group-title i {
    color: var(--primary);
    font-size: 0.9rem;
}

.resource-caption {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
    font-weight: 400;
}

@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ═══════════════════════════════════════════════
   DATA PLATFORM FEATURE BLOCK
═══════════════════════════════════════════════ */
.data-platform-feature.section {
    margin-bottom: 3rem;
}

.dp-feature-card {
    border: 1px solid rgba(232, 145, 107, 0.3);
    border-left: 4px solid var(--primary);
    background: var(--bg-secondary);
    padding: 2.5rem 2.75rem;
    border-radius: 2px;
}

.dp-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.85rem 0;
}

.dp-eyebrow i {
    margin-right: 0.4rem;
}

.dp-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.dp-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    max-width: 620px;
}

.dp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.dp-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(42, 51, 66, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 2px;
}

.dp-tag-status {
    color: var(--primary);
    border-color: rgba(232, 145, 107, 0.4);
    background: rgba(232, 145, 107, 0.06);
}
/* RESTORED CSS FROM YESTERDAY FOR INDEX.HTML COMPONENTS */
.showcase-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.showcase-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.suite-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.suite-tool-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(42, 51, 66, 0.05);
    color: var(--secondary);
    border-radius: 4px;
    border: 1px solid rgba(42, 51, 66, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.suite-tool-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .suite-tool-pill {
    background: rgba(253, 246, 227, 0.05);
    border-color: rgba(253, 246, 227, 0.1);
    color: var(--text-primary);
}

/* ═══ The Contributor Flywheel (2-Column) ═══ */
.flywheel-section {
    background: var(--bg-secondary);
    padding: 3rem 4rem;
    border-radius: 4px;
    margin: 3rem 0;
    border: 1px solid rgba(42, 51, 66, 0.08);
}

.flywheel-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.flywheel-text-col {
    flex: 1;
    text-align: left;
}

.flywheel-img-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flywheel-diagram {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    mix-blend-mode: multiply; /* Blends the light background of the image nicely */
}

[data-theme="dark"] .flywheel-diagram {
    mix-blend-mode: screen;
    filter: invert(1) hue-rotate(180deg) brightness(1.2); /* Inverts the drawing for dark mode */
}

.flywheel-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.flywheel-eyebrow i {
    margin-right: 0.4rem;
}

.flywheel-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.flywheel-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.flywheel-bullets li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.flywheel-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 800;
}

.flywheel-bullets strong {
    color: var(--secondary);
    font-weight: 700;
}

.flywheel-cta {
    margin-top: 1rem;
}

@media screen and (max-width: 768px) {
    .flywheel-section {
        padding: 2.5rem 1.5rem;
    }
    .flywheel-split {
        flex-direction: column-reverse;
        gap: 2.5rem;
    }
}

/* Mobile Queries */
@media screen and (max-width: 768px) {
        .list-container {
            grid-template-columns: 1fr;
        }

        .tools-list {
            grid-template-columns: 1fr;
        }
    
        .hero-section {
            min-height: 280px;
        }
    
        .hero-content {
            padding: 3rem 1.5rem;
        }
    
        .hero-headline {
            font-size: 2rem;
        }
    
        .hero-description {
            font-size: 0.95rem;
            max-width: 100%;
        }
    
        .hero-bg-pattern {
            width: 100%;
            opacity: 0.35;
        }
    
        .hero-gradient-overlay {
            background: linear-gradient(90deg,
                    #18212f 10%,
                    rgba(5, 7, 10, 0.96) 50%,
                    rgba(5, 7, 10, 0.7) 100%);
        }
}
