/* Virtual Cellar — Page-Specific Styles
   Extends the droptbeer theme for VC marketing pages
   ─────────────────────────────────────────────────── */

/* ── Purchase Ticker (hero scrolling strip) ──────── */

.vc-ticker-wrap {
    overflow: hidden;
    padding: 14px 0;
    background: rgba(255,255,255,.03);
    border-top: 1px solid var(--db-border);
    border-bottom: 1px solid var(--db-border);
    margin: 32px 0 0;
    -webkit-mask-image: linear-gradient(to right,transparent,#000 12%,#000 88%,transparent);
    mask-image: linear-gradient(to right,transparent,#000 12%,#000 88%,transparent);
}

.vc-ticker {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: vc-ticker-scroll 40s linear infinite;
}

.vc-ticker:hover { animation-play-state: paused; }

@keyframes vc-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.vc-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: .88rem;
    color: var(--db-text-muted);
}

.vc-ticker-item strong { color: var(--db-text); }
.vc-ticker-item .vc-ti-value { color: var(--db-yellow); font-weight: 700; }
.vc-ticker-dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--db-border);
    margin: 0 4px;
}

/* ── Steps / Process ─────────────────────────────── */

.vc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.vc-step {
    position: relative;
    padding: 32px 28px;
    background: var(--db-glass-bg);
    border: 1px solid var(--db-glass-border);
    border-radius: 16px;
    backdrop-filter: var(--db-glass-blur);
    text-align: center;
    transition: border-color .2s, transform .2s;
}

.vc-step:hover {
    border-color: rgba(108,92,231,.4);
    transform: translateY(-4px);
}

.vc-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--db-grad);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.vc-step__emoji {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.vc-step__title {
    font-family: var(--db-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--db-text);
    margin: 0 0 10px;
}

.vc-step__body {
    font-size: .9rem;
    color: var(--db-text-muted);
    line-height: 1.65;
    margin: 0;
}

.vc-step-connector {
    display: none;
}

@media (min-width: 900px) {
    .vc-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ── Certificate Preview Card ────────────────────── */

.vc-cert-preview {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(145deg, #1e1208, #2c1a08);
    border: 1px solid rgba(196,122,37,.5);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(196,122,37,.1);
    font-family: Georgia, serif;
    color: #e8d5a8;
    text-align: center;
}

.vc-cert-preview::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(196,122,37,.25);
    border-radius: 10px;
    pointer-events: none;
}

.vc-cert-preview__header {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(232,213,168,.5);
    margin-bottom: 4px;
}

.vc-cert-preview__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #c47a25;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.vc-cert-preview__certifies {
    font-size: .85rem;
    color: rgba(232,213,168,.6);
    font-style: italic;
    margin-bottom: 8px;
}

.vc-cert-preview__name {
    font-size: 2rem;
    font-weight: 700;
    color: #f5e6c0;
    margin-bottom: 4px;
    line-height: 1.1;
}

.vc-cert-preview__location {
    font-size: .88rem;
    color: rgba(232,213,168,.6);
    margin-bottom: 20px;
}

.vc-cert-preview__owns {
    font-size: .85rem;
    color: rgba(232,213,168,.6);
    font-style: italic;
    margin-bottom: 12px;
}

.vc-cert-preview__divider {
    border: none;
    border-top: 1px solid rgba(196,122,37,.3);
    margin: 16px 0;
}

.vc-cert-preview__bottle-emoji { font-size: 2rem; margin-bottom: 8px; }

.vc-cert-preview__bottle {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f5e6c0;
    margin-bottom: 4px;
}

.vc-cert-preview__distillery {
    font-size: .85rem;
    color: rgba(232,213,168,.6);
    font-style: italic;
    margin-bottom: 16px;
}

.vc-cert-preview__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c47a25;
    margin-bottom: 4px;
}

.vc-cert-preview__date {
    font-size: .78rem;
    color: rgba(232,213,168,.5);
    margin-bottom: 20px;
}

.vc-cert-preview__footer {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(196,122,37,.6);
    border-top: 1px solid rgba(196,122,37,.2);
    padding-top: 14px;
    margin-top: 8px;
}

.vc-cert-preview__number {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: .72rem;
    color: rgba(196,122,37,.5);
    font-family: monospace;
}

/* Glow effect on preview */
.vc-cert-preview-wrap {
    position: relative;
}
.vc-cert-preview-wrap::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center, rgba(196,122,37,.15) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* ── Two-col layout for preview + copy ───────────── */

.vc-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vc-two-col--reverse { direction: rtl; }
.vc-two-col--reverse > * { direction: ltr; }

@media (max-width: 800px) {
    .vc-two-col { grid-template-columns: 1fr; gap: 36px; }
    .vc-two-col--reverse { direction: ltr; }
}

/* ── Feature pills row ───────────────────────────── */

.vc-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.vc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--db-border);
    background: var(--db-glass-bg);
    color: var(--db-text-muted);
    font-size: .82rem;
    backdrop-filter: var(--db-glass-blur);
}

/* ── Toast demo animation ────────────────────────── */

.vc-toast-demo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid rgba(196,122,37,.4);
    border-radius: 10px;
    background: rgba(196,122,37,.08);
    color: var(--db-text);
    font-size: .95rem;
    font-weight: 600;
    margin-top: 24px;
    animation: vc-toast-pulse 2.5s ease-in-out infinite;
}

@keyframes vc-toast-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196,122,37,0); }
    50%       { box-shadow: 0 0 0 8px rgba(196,122,37,.12); }
}

/* ── Blog grid ───────────────────────────────────── */

.vc-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.vc-blog-card {
    background: var(--db-glass-bg);
    border: 1px solid var(--db-glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    backdrop-filter: var(--db-glass-blur);
    display: flex;
    flex-direction: column;
}

.vc-blog-card:hover {
    border-color: rgba(108,92,231,.4);
    transform: translateY(-4px);
}

.vc-blog-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--db-bg-3);
}

.vc-blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.vc-blog-card:hover .vc-blog-card__thumb img {
    transform: scale(1.04);
}

.vc-blog-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.vc-blog-card__body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vc-blog-card__cat {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--db-purple-light);
    margin-bottom: 10px;
}

.vc-blog-card__title {
    font-family: var(--db-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--db-text);
    line-height: 1.4;
    margin: 0 0 10px;
    text-decoration: none;
    display: block;
}

.vc-blog-card__title:hover { color: var(--db-purple-light); }

.vc-blog-card__excerpt {
    font-size: .87rem;
    color: var(--db-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.vc-blog-card__meta {
    font-size: .78rem;
    color: var(--db-text-faint);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Gift occasions grid ─────────────────────────── */

.vc-occasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.vc-occasion {
    text-align: center;
    padding: 24px 16px;
    background: var(--db-glass-bg);
    border: 1px solid var(--db-glass-border);
    border-radius: 12px;
    backdrop-filter: var(--db-glass-blur);
    transition: border-color .2s;
}

.vc-occasion:hover { border-color: rgba(108,92,231,.4); }
.vc-occasion__emoji { font-size: 2.4rem; margin-bottom: 10px; }
.vc-occasion__label { font-size: .9rem; font-weight: 600; color: var(--db-text); }

/* ── Leaderboard / Feed section container ────────── */

.vc-community-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .vc-community-section { grid-template-columns: 1fr; }
}

.vc-community-section h3 {
    font-family: var(--db-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--db-text);
    margin: 0 0 16px;
}

/* ── Hero badge strip ────────────────────────────── */

.vc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.vc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: var(--db-text-muted);
    font-size: .8rem;
    backdrop-filter: blur(8px);
}

/* ── About / manifesto styles ────────────────────── */

.vc-manifesto {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--db-text-muted);
}

.vc-manifesto p { margin-bottom: 1.4em; }
.vc-manifesto strong { color: var(--db-text); }

.vc-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.vc-value {
    padding: 24px;
    background: var(--db-glass-bg);
    border: 1px solid var(--db-glass-border);
    border-radius: 12px;
    backdrop-filter: var(--db-glass-blur);
}

.vc-value__icon { font-size: 1.8rem; margin-bottom: 12px; }
.vc-value__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--db-text);
    margin-bottom: 8px;
}
.vc-value__body { font-size: .87rem; color: var(--db-text-muted); line-height: 1.6; }

/* ── Single blog post styles (used in page-virtual-cellar-blog.php) ── */

.vc-article-hero {
    position: relative;
    text-align: center;
    padding: 100px 0 60px;
}

.vc-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vc-article-cat {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--db-purple-light);
    background: rgba(108,92,231,.12);
    border: 1px solid rgba(108,92,231,.25);
    padding: 3px 10px;
    border-radius: 100px;
}

.vc-article-date {
    font-size: .82rem;
    color: var(--db-text-faint);
}

.vc-article-read-time {
    font-size: .82rem;
    color: var(--db-text-faint);
}

.vc-article-title {
    font-family: var(--db-font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--db-text);
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 20px;
}

.vc-article-intro {
    font-size: 1.1rem;
    color: var(--db-text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.vc-article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--db-text-muted);
}

.vc-article-content h2 {
    font-family: var(--db-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--db-text);
    margin: 2.5em 0 .8em;
}

.vc-article-content h3 {
    font-family: var(--db-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--db-text);
    margin: 2em 0 .7em;
}

.vc-article-content p { margin-bottom: 1.4em; }

.vc-article-content strong { color: var(--db-text); }

.vc-article-content blockquote {
    border-left: 3px solid var(--db-purple);
    margin: 2em 0;
    padding: 16px 24px;
    background: rgba(108,92,231,.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--db-text);
}

.vc-article-content ul,
.vc-article-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.4em;
}

.vc-article-content li { margin-bottom: .5em; }

.vc-article-cta {
    margin: 3em 0;
    padding: 32px;
    background: var(--db-glass-bg);
    border: 1px solid var(--db-glass-border);
    border-radius: 14px;
    text-align: center;
    backdrop-filter: var(--db-glass-blur);
}

.vc-article-cta h3 {
    color: var(--db-text);
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.vc-article-cta p {
    color: var(--db-text-muted);
    font-size: .92rem;
    margin-bottom: 18px;
}

/* ── No DB data fallback ─────────────────────────── */

.vc-stat-live {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Community page: side-by-side feed + leaderboard ── */

.vc-community-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

@media (max-width: 960px) {
    .vc-community-layout { grid-template-columns: 1fr; gap: 32px; }
}

.vc-community-feed-col,
.vc-community-lb-col { min-width: 0; }

.vc-community-col-title {
    font-family: var(--db-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--db-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--db-border);
}

/* ── Leaderboard page: full-width board ─────────── */

/* Force the plugin's leaderboard to fill the section width on the leaderboard page */
.db-section .vc-leaderboard {
    max-width: 100%;
}
