/* ==========================================================================
   Homepage — layout polish (loads after crypto-theme + layout-shell)
   ========================================================================== */

/* ---- Hero: kill legacy vine-top side effects ---- */
.crypto-theme .crypto-home-hero {
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    margin-bottom: 1.5rem !important;
    background-size: cover !important;
    background-position: center center !important;
    min-height: 0 !important;
}

.crypto-theme .crypto-home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 1.25rem;
    align-items: start;
}

@media (min-width: 992px) {
    .crypto-theme .crypto-home-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
        padding: 2rem 2rem;
        gap: 1.75rem;
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .crypto-theme .crypto-home-hero-grid {
        padding: 2.25rem 2.5rem;
    }
}

.crypto-theme .crypto-home-hero-copy {
    max-width: 640px;
}

.crypto-theme .vine-top-title,
.crypto-theme .crypto-home-hero .vine-top-title {
    font-size: clamp(1.45rem, 2.8vw, 2.15rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em;
}

.crypto-theme .crypto-home-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.25rem !important;
    max-width: 520px;
}

.crypto-theme .crypto-home-hero .buttons-group {
    gap: 0.65rem;
    margin-bottom: 1.25rem !important;
}

.crypto-theme .crypto-home-hero .buttons-group .btn-lg {
    padding: 0.55rem 1.15rem !important;
    font-size: 0.9rem !important;
}

.crypto-theme .crypto-home-platform-stats {
    max-width: 100%;
}

@media (min-width: 576px) {
    .crypto-theme .crypto-home-platform-stats {
        max-width: 420px;
    }
}

.crypto-theme .crypto-home-wallet-panel {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .crypto-theme .crypto-home-wallet-panel {
        margin: 0 0 0 auto;
        justify-self: end;
    }
}

.crypto-theme .crypto-home-wallet-panel-head {
    color: var(--text-color) !important;
}

.crypto-theme .pux-home-stats--hero .pux-home-stat {
    padding: 0.7rem 0.85rem !important;
}

.crypto-theme .pux-home-stats--hero .pux-home-stat strong {
    font-size: 1.05rem !important;
}

@media (min-width: 992px) {
    .crypto-theme .pux-home-stats--hero {
        grid-template-columns: 1fr 1fr !important;
    }

    .crypto-theme .pux-home-stats--hero .pux-home-stat--ring {
        grid-column: 1 / -1;
    }
}

/* ---- Main content rhythm ---- */
.crypto-theme .home-content-block {
    gap: 1.75rem;
    padding-bottom: 2rem;
}

.crypto-theme .home-strip-title {
    color: var(--text-color) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.85rem !important;
    letter-spacing: -0.01em;
}

.crypto-theme .home-all-videos {
    margin-top: 0 !important;
}

/* ---- Category pills ---- */
.crypto-theme .crypto-tags-wrap {
    margin: 0 !important;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.crypto-theme .crypto-tags-wrap::-webkit-scrollbar {
    display: none;
}

.crypto-theme .crypto-tags .tag-link {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.82rem !important;
}

/* ---- Video grid (replaces loose bootstrap cols) ---- */
.crypto-theme .home-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .crypto-theme .home-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (min-width: 1200px) {
    .crypto-theme .home-video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.crypto-theme .home-video-grid-item {
    min-width: 0;
}

.crypto-theme .home-video-strip .row,
.crypto-theme .home-all-videos .videos > .row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 0 !important;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

@media (min-width: 768px) {
    .crypto-theme .home-video-strip .row,
    .crypto-theme .home-all-videos .videos > .row {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (min-width: 1200px) {
    .crypto-theme .home-video-strip .row,
    .crypto-theme .home-all-videos .videos > .row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.crypto-theme .home-video-strip .row > [class*="col-"],
.crypto-theme .home-all-videos .videos > .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.crypto-theme .home-video-strip,
.crypto-theme .home-all-videos {
    margin-bottom: 0 !important;
}

.crypto-theme .video-post {
    margin-bottom: 0 !important;
    height: 100%;
}

.crypto-theme .video-post-thumbnail {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.crypto-theme .video-post-thumbnail img {
    border-radius: 0 !important;
}

/* ---- Navbar guest buttons (no overlap) ---- */
.crypto-theme .header-end .nav-item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}

.crypto-theme .header-end .nav-item .btn {
    margin: 0 !important;
    padding: 0.38rem 0.8rem !important;
    font-size: 0.78rem !important;
    line-height: 1.2;
    white-space: nowrap;
}

.crypto-theme .header-end .nav-item .btn.ms-3 {
    margin-left: 0 !important;
}

@media (max-width: 399.98px) {
    .crypto-theme .header-end .nav-item .btn-red {
        display: none;
    }
}

/* ---- Theme switcher clearance ---- */
.crypto-theme #theme-switcher {
    bottom: 1rem;
    right: 1rem;
    z-index: 1060;
    width: 44px;
    height: 44px;
    line-height: 44px;
    color: var(--crypto-accent);
}

body.pux-mobile-nav-on #theme-switcher {
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

@media (max-width: 767.98px) {
    body.pux-mobile-nav-on #theme-switcher {
        bottom: calc(4.75rem + env(safe-area-inset-bottom));
        right: 0.85rem;
    }
}

/* ---- Footer spacing ---- */
.crypto-theme .vine-footer {
    margin-top: 0.5rem;
}
