
/* ==================================================
   TAROT OVERZICHT
   OnlineTarot.nl
================================================== */


/* ==================================================
   ALGEMEEN
================================================== */

.tarot-overview {
    color: #D5DCEC;
    padding-bottom: 30px;
}

.tarot-overview,
.tarot-overview * {
    box-sizing: border-box;
}

.tarot-overview h1,
.tarot-overview h2 {
    font-family: 'Cormorant Garamond', serif;
}


/* ==================================================
   INTRODUCTIE
================================================== */

.to-hero {
    max-width: 850px;
    margin: 0 auto 35px;
    padding: 5px;
    text-align: center;
}

.to-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #C9A96E;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.to-hero h1 {
    margin: 0 0 18px;
    color: #E3E8F3;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
}

.to-intro {
    max-width: 740px;
    margin: 0 auto;
    color: #C5CDDF;
    font-size: 1rem;
    line-height: 1.9;
}

.to-divider {
    width: 100px;
    height: 1px;
    margin: 25px auto;
    background: linear-gradient(
        90deg,
        transparent,
        #C9A96E,
        transparent
    );
}


/* ==================================================
   AANTAL KAARTEN
================================================== */

.to-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(153, 170, 201, 0.3);
    border-radius: 30px;
}

.to-count-number {
    color: #D5C397;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.to-count-label {
    color: #BEC8DA;
    font-size: 0.82rem;
}


/* ==================================================
   ZOEKVELD
================================================== */

.to-search-section {
    max-width: 560px;
    margin: 0 auto 35px;
    text-align: center;
}

.to-search-section label {
    display: block;
    margin-bottom: 10px;
    color: #E0E5F0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.to-search-wrap {
    position: relative;
}

.to-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #C9A96E;
    font-size: 1.5rem;
    pointer-events: none;
}

.to-search-wrap input {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 12px 15px 12px 45px;
    color: #E0E5F0;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    background: #0D1930;
    border: 1px solid #52617F;
    border-radius: 7px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.to-search-wrap input::placeholder {
    color: #8794AB;
}

.to-search-wrap input:focus {
    border-color: #C9A96E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.to-search-info {
    margin: 10px 0 0;
    color: #9EACC3;
    font-size: 0.78rem;
}


/* ==================================================
   KAARTENRASTER
================================================== */

.to-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    width: 100%;
}


/* ==================================================
   KAARTTEGEL
================================================== */

.to-card {
    min-width: 0;
    overflow: hidden;
    background: #0D1930;
    border: 1px solid #52617F;
    border-radius: 9px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.to-card:hover,
.to-card:focus-within {
    transform: translateY(-4px);
    border-color: #B9965D;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.to-card[hidden] {
    display: none !important;
}

.to-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}


/* ==================================================
   KAARTAFBEELDING
================================================== */

.to-card-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 13px;
    background:
        radial-gradient(
            circle at center,
            rgba(91, 111, 151, 0.16),
            transparent 70%
        ),
        #080F1E;
    border-bottom: 1px solid rgba(153, 170, 201, 0.25);
}

.to-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 206 / 341;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.to-card:hover .to-card-image,
.to-card:focus-within .to-card-image {
    transform: scale(1.025);
}


/* ==================================================
   HOVER OVERLAY
================================================== */

.to-card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px;
    color: #E8D5A9;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(5, 12, 26, 0.88);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease,
                transform 0.2s ease;
}

.to-card:hover .to-card-overlay,
.to-card:focus-within .to-card-overlay {
    opacity: 1;
    transform: translateY(0);
}


/* ==================================================
   KAARTTEKST
================================================== */

.to-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 17px 18px;
}

.to-card-number {
    display: block;
    margin-bottom: 6px;
    color: #C9A96E;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.to-card-content h2 {
    margin: 0 0 10px;
    color: #E0E5F0;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
}

.to-card-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 15px;
    color: #BFC9DC;
    font-size: 0.82rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.to-card-more {
    display: block;
    margin-top: auto;
    padding-top: 10px;
    color: #D5C397;
    font-size: 0.77rem;
    font-weight: 600;
    border-top: 1px solid rgba(153, 170, 201, 0.2);
}

.to-card-more span {
    margin-left: 4px;
    transition: margin-left 0.2s ease;
}

.to-card:hover .to-card-more span,
.to-card:focus-within .to-card-more span {
    margin-left: 9px;
}

.to-card-link:focus-visible {
    outline: 2px solid #C9A96E;
    outline-offset: -3px;
}


/* ==================================================
   GEEN ZOEKRESULTATEN
================================================== */

.to-no-results {
    margin: 35px auto;
    padding: 40px 20px;
    text-align: center;
    background: #0D1930;
    border: 1px solid #52617F;
    border-radius: 10px;
}

.to-no-results[hidden] {
    display: none !important;
}

.to-no-results > span {
    color: #C9A96E;
    font-size: 2rem;
}

.to-no-results h2 {
    margin: 10px 0;
    color: #E0E5F0;
    font-size: 1.8rem;
}

.to-no-results p {
    margin: 0;
    color: #BFC9DC;
    font-size: 0.9rem;
}


/* ==================================================
   AFSLUITENDE TEKST
================================================== */

.to-footer-intro {
    max-width: 780px;
    margin: 55px auto 25px;
    padding: 30px 20px 15px;
    text-align: center;
    border-top: 1px solid rgba(153, 170, 201, 0.25);
}

.to-footer-intro h2 {
    margin: 0 0 15px;
    color: #E0E5F0;
    font-size: 2rem;
    font-weight: 600;
}

.to-footer-intro p {
    margin: 0;
    color: #BEC8DA;
    font-size: 0.9rem;
    line-height: 1.85;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1000px) {

    .to-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

}


/* ==================================================
   MOBIEL
================================================== */

@media (max-width: 650px) {
    .to-hero {
        margin: 0 auto 35px;
        padding: 5px;
    }

    .to-intro {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .to-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .to-card-image-wrap {
        padding: 8px;
    }

    .to-card-content {
        padding: 12px;
    }

    .to-card-content h2 {
        font-size: 1.2rem;
    }

    .to-card-content p {
        font-size: 0.76rem;
        -webkit-line-clamp: 4;
    }

    .to-card-number {
        font-size: 0.6rem;
    }

    .to-card-more {
        font-size: 0.7rem;
    }

    .to-card-overlay {
        display: none;
    }

    .to-footer-intro {
        margin-top: 40px;
    }

}


/* ==================================================
   KLEINE MOBIELE SCHERMEN
================================================== */

@media (max-width: 360px) {

    .to-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .to-card {
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }

    .to-card-image-wrap {
        padding: 12px;
    }

    .to-card-content {
        padding: 15px;
    }

    .to-card-content h2 {
        font-size: 1.4rem;
    }

    .to-card-content p {
        font-size: 0.82rem;
    }

}


/* ==================================================
   TOEGANKELIJKHEID: VERMINDERDE BEWEGING
   ================================================== */

@media (prefers-reduced-motion: reduce) {
    .to-card,
    .to-card-image,
    .to-card-overlay,
    .to-card-more span {
        transition: none;
    }
}
