/* =====================================================
   TheCoin — Featured Collections | widget.css
   https://thecoin.co.in/
   ===================================================== */

.tc-section {
    box-sizing: border-box;
    width: 100%;
}

.tc-section *,
.tc-section *::before,
.tc-section *::after {
    box-sizing: inherit;
}

/* ── Header ─────────────────────────────────────────── */
.tc-header {
    text-align: center;
    margin-bottom: 60px;
}

.tc-section-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: #c9a96e;
}

.tc-section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 400;
    margin: 0 0 18px;
    line-height: 1.2;
    color: #1a1a1a;
}

.tc-divider {
    width: 40px;
    height: 2px;
    border: none;
    background-color: #c9a96e;
    margin: 0 auto;
}

/* ── Grid ────────────────────────────────────────────── */
.tc-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}

/* ── Card ────────────────────────────────────────────── */
.tc-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.tc-card__img-wrap {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    background: #e0d9ce;
    display: block;
}

.tc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Zoom on hover (class toggled per-card via PHP) */
.tc-card.tc-zoom:hover .tc-card__img {
    transform: scale(1.05);
}

/* ── Placeholder (editor — no image yet) ─────────────── */
.tc-card__placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    background: #d8d1c6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-card__placeholder span {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.05em;
    font-family: sans-serif;
}

/* ── Overlay ─────────────────────────────────────────── */
.tc-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    pointer-events: none;
}

/* ── Label ───────────────────────────────────────────── */
.tc-card__label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1;
    color: #c9a96e;
}

/* ── Title ───────────────────────────────────────────── */
.tc-card__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 38px;
    font-weight: 400;
    font-style: italic;
    color: #ffffff;
    margin: 0 0 18px;
    line-height: 1.2;
}

/* ── CTA Button ──────────────────────────────────────── */
.tc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    pointer-events: all;
    line-height: 1;
    color: #ffffff;

    /* hidden until hover — revealed by .tc-card:hover */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, gap 0.25s ease;
}

.tc-card:hover .tc-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Always-visible override */
.tc-card__cta.tc-cta--always {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Pill */
.tc-card__cta.tc-cta--pill {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #ffffff;
}

/* Solid */
.tc-card__cta.tc-cta--filled {
    padding: 10px 24px;
    border-radius: 4px;
}

/* Outline */
.tc-card__cta.tc-cta--outline {
    padding: 10px 24px;
    border: 1px solid #ffffff;
    background: transparent;
}

/* Arrow SVG */
.tc-card__cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tc-card__cta:hover svg {
    transform: translateX(3px);
}

/* ── Elementor editor preview — always show CTA ──────── */
.elementor-editor-active .tc-card__cta {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Responsive fallback (overridden by inline PHP cols) */
@media (max-width: 767px) {
    .tc-card__title {
        font-size: 26px;
    }
    .tc-card__overlay {
        padding: 24px;
    }
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tc-card__img,
    .tc-card__cta {
        transition: none !important;
    }
    .tc-card__cta {
        opacity: 1 !important;
        transform: none !important;
    }
}
