/* UI refinements — works with theme-professional */

.hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36rem;
    margin: 0.75rem 0 1.25rem;
}

.hero-community {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, #475569);
    line-height: 1.4;
}

.hero-community strong {
    color: var(--db-cyan, #00a9e0);
    font-weight: 700;
}

/* Hero visual: large community line + transparent illustration */
.hero-visual-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}

.hero-community-hero {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary, #0f172a);
    max-width: 18rem;
}

.hero-community-hero strong {
    color: var(--accent-primary, #ff3621);
    font-weight: 800;
}

body.theme-professional .hero-visual-bg,
body.theme-professional .hero-logo-img {
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
}

body.theme-professional .hero-community-hero {
    color: var(--text-primary);
}

body.theme-professional .hero-community-hero strong {
    color: var(--accent-primary);
}

body.theme-professional .hero-community {
    color: var(--text-secondary);
}

body.theme-professional .hero-community strong {
    color: var(--db-navy, #1b3139);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.hero-cta-row .hero-cta-btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.95rem;
    line-height: 1.2;
    min-height: 2.75rem;
    border-radius: 8px;
    justify-content: center;
    white-space: nowrap;
}

.hero-cta-row .btn-primary.hero-cta-btn {
    border: 1px solid var(--accent-primary);
    box-shadow: 0 2px 8px rgba(255, 54, 33, 0.25);
}

.hero-cta-row .btn-hero-secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.hero-cta-row .btn-hero-secondary:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    opacity: 1;
}

.btn-hero-secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.btn-hero-secondary:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    opacity: 1;
}

.hero-curator-badge {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
    max-width: 100%;
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.75rem;
}

.hero-meta-row .databricks-hero-badge {
    margin-bottom: 0;
}

.hero-community-badge {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 54, 33, 0.16) 0%, rgba(255, 54, 33, 0.08) 100%);
    border-color: rgba(255, 54, 33, 0.4);
    color: var(--db-navy, #1b3139);
    box-shadow: 0 2px 10px rgba(255, 54, 33, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-community-badge:hover {
    border-color: var(--accent-primary, #ff3621);
    box-shadow: 0 4px 16px rgba(255, 54, 33, 0.22);
    transform: translateY(-1px);
}

.hero-community-badge strong {
    color: var(--accent-primary, #ff3621);
    font-weight: 800;
    font-size: 1.08em;
}

.hero-community-icon {
    color: var(--accent-primary, #ff3621);
}

.hero-curator-badge strong {
    font-weight: 700;
    color: var(--db-navy, #1b3139);
}

.hero-badge-icon {
    color: var(--db-cyan, #00a9e0);
    font-size: 0.9rem;
}

.hero-top-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.hero-pills-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #475569);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-pills-fire {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.85rem;
}

.hero-top-topics .db-pill {
    margin: 0;
}

.db-logo-sm {
    display: block;
    flex-shrink: 0;
}

.btn-cta-youtube {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-cta-youtube i {
    color: #ff0000;
    font-size: 1.15rem;
}

.btn-cta-youtube:hover {
    border-color: #ff0000;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.12);
}

/* Events — single-column timeline */
.events-section {
    padding: 1.25rem 0 1.5rem;
}

.events-section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
}

.events-section-lead {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.events-timeline {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.events-timeline::before {
    left: 11px;
    transform: none;
    background: linear-gradient(180deg, var(--db-cyan, #00a9e0), rgba(0, 169, 224, 0.15));
}

.events-timeline .timeline-event {
    width: 100%;
    left: 0 !important;
    padding: 0 0 1.25rem 2.75rem;
    text-align: left !important;
    margin-bottom: 0;
}

.events-timeline .timeline-event::after {
    left: 3px !important;
    right: auto !important;
    top: 1.1rem;
    width: 14px;
    height: 14px;
    border-width: 2px;
    background: #fff;
    border-color: var(--db-cyan, #00a9e0);
    box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.15);
}

.events-timeline .timeline-event:first-child::after {
    background: var(--db-cyan, #00a9e0);
}

.events-timeline .event-date,
.events-timeline .event-location {
    justify-content: flex-start !important;
}

.events-timeline .event-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 1rem 1.15rem;
    backdrop-filter: none;
}

.events-timeline .event-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.events-timeline .event-title {
    color: #0f172a;
    font-size: 1.05rem;
}

.events-timeline .event-date {
    color: var(--db-cyan, #00a9e0);
    font-size: 0.7rem;
}

.events-timeline .event-date i,
.events-timeline .event-location i {
    opacity: 0.75;
}

.events-timeline .event-location {
    color: #64748b;
    margin-bottom: 0.65rem;
}

.events-timeline .btn-view {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .events-timeline .timeline-event {
        padding-left: 2.5rem;
    }
}

.hero-social-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.5rem;
}

.hero-social-label {
    display: none;
}

.hero-buttons-icons-only.hero-social-bar {
    display: none;
}

.filter-container.filter-sticky {
    position: sticky;
    top: calc(var(--header-height, 80px) + 45px);
    z-index: 900;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
}

.filter-container.filter-sticky .resource-count {
    font-weight: 600;
    color: var(--accent-primary);
}

.section-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.1rem 0.45rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    vertical-align: middle;
}

.section-count-badge:empty,
.section-count-badge[hidden] {
    display: none;
}

.card-meta-source {
    font-size: 0.75rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta-date {
    font-size: 0.75rem;
}

.card-meta .meta-divider {
    margin: 0 0.25rem;
}

.card-meta-extra {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    flex-wrap: wrap;
}

.resource-card-skeleton {
    pointer-events: none;
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-thumb {
    aspect-ratio: 16 / 9;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
    height: 12px;
    margin: 0.75rem 1rem 0.35rem;
    border-radius: 4px;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line.short {
    width: 55%;
    margin-bottom: 1rem;
}

@keyframes skeleton-shimmer {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .skeleton-thumb,
    .skeleton-line {
        animation: none;
    }
}
