
/* ========================================
   EXPLORE PAGE
   Shared styles are defined in style.css.
======================================== */

/* Main layout */

.explore-main {
    flex: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 0.9fr);

    align-items: start;
    gap: clamp(40px, 7vw, 112px);

    padding-block: 42px 80px;
}

/* ========================================
   INTRODUCTION
======================================== */

.explore-intro {
    min-width: 0;
    max-width: 680px;

    /* Align the title with the Index hero title. */
    margin-top: 10px;
}

.explore-title {
    margin: 0;

    font-size: clamp(48px, 6.5vw, 100px);
    font-weight: 720;
    letter-spacing: -0.075em;
    line-height: 1.04;
}

.explore-title span {
    display: block;

    color: var(--muted);
    font-weight: 450;
    letter-spacing: -0.065em;
}

.explore-description {
    max-width: 660px;
    margin: 26px 0 0;

    color: var(--foreground);

    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 400;
    line-height: 1.65;
}

.explore-caption {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 22px;

    color: var(--muted);

    font-size: 11px;
    letter-spacing: 0.5px;
}

.explore-caption-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;

    border-radius: 50%;
    background: var(--muted);
}

/* Matches the homepage `.hero-actions` placement so the
   "Back to home" button lines up with the Discover button. */

.explore-actions {
    margin-top: 32px;
}

/* ========================================
   NAVIGATION CARDS
======================================== */

.explore-navigation {
    min-width: 0;

    display: grid;
    gap: 14px;
}

.explore-card {
    position: relative;
    overflow: hidden;

    min-width: 0;
    min-height: 148px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;

    padding: 22px 24px;

    border: 1px solid var(--card-border);
    border-radius: 14px;

    background: transparent;
    color: var(--foreground);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

/* Top row */

.explore-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.explore-card-number {
    color: var(--muted);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;

    transition: color var(--transition);
}

.explore-card-icon {
    width: 23px;
    height: 23px;
    flex-shrink: 0;

    color: var(--muted);

    transition:
        color var(--transition),
        transform var(--transition);
}

/* Bottom row */

.explore-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.explore-card-title {
    margin: 0;

    font-size: clamp(23px, 2.2vw, 30px);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1.15;

    transition:
        color var(--transition),
        transform var(--transition);
}

.explore-card-description {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;

    transition: color var(--transition);
}

.explore-card-arrow {
    display: inline-block;
    flex-shrink: 0;

    color: var(--muted);

    font-size: 24px;
    line-height: 1;

    transform: translate(0, 0);

    transition:
        color var(--transition),
        transform var(--transition);
}

/* ========================================
   HOVER ANIMATION
======================================== */

.explore-card:hover {
    background: var(--border);
    border-color: var(--muted);

    transform: translateY(-4px);

    box-shadow:
        0 10px 24px rgba(var(--shadow-color), 0.055);
}

.explore-card:hover .explore-card-number {
    color: var(--foreground);
}

.explore-card:hover .explore-card-icon {
    color: var(--foreground);
    transform: scale(1.08);
}

.explore-card:hover .explore-card-title {
    color: var(--foreground);
    transform: translateX(3px);
}

.explore-card:hover .explore-card-description {
    color: var(--foreground);
}

.explore-card:hover .explore-card-arrow {
    color: var(--foreground);
    transform: translate(4px, -4px);
}

.explore-card:active {
    transform: translateY(-1px);
    box-shadow: none;
}

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

@media (max-width: 900px) {
    .explore-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;

        padding-block: 44px 64px;
    }

    .explore-intro {
        max-width: 720px;
        margin-top: 0;
    }

    .explore-title {
        font-size: clamp(54px, 10vw, 82px);
    }

    .explore-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .explore-card {
        min-height: 170px;
        padding: 18px;
    }

    .explore-card-title {
        font-size: 22px;
    }

    .explore-card-bottom {
        gap: 8px;
    }

    .explore-card-arrow {
        font-size: 21px;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
    .explore-main {
        gap: 34px;

        padding-block: 38px 52px;
    }

    .explore-title {
        font-size: clamp(42px, 10.8vw, 60px);
        letter-spacing: -0.07em;
    }

    .explore-title span {
        letter-spacing: -0.06em;
    }

    .explore-description {
        margin-top: 20px;

        font-size: 15px;
        line-height: 1.8;
    }

    .explore-caption {
        margin-top: 18px;
    }

    .explore-navigation {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .explore-card {
        min-height: 125px;
        padding: 18px 20px;
    }

    .explore-card-title {
        font-size: 23px;
    }

    .explore-card-icon {
        width: 21px;
        height: 21px;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    .explore-card,
    .explore-card-number,
    .explore-card-icon,
    .explore-card-title,
    .explore-card-description,
    .explore-card-arrow {
        transition: none;
    }

    .explore-card:hover,
    .explore-card:active {
        transform: none;
        box-shadow: none;
    }
}
