/* ============================================================
   Explorer Page — gp-explore2026.css
   Structured discovery page with search, trending, community
   ============================================================ */

/* Layout */
.explore {
    position: relative;
    z-index: 2;
    background: #fff;
}

.explore-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Sections */
.explore-section {
    padding: 40px 0;
}

.explore-section--alt {
    background: #f8fafc;
}

.explore-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.explore-section__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gp-text, #1a1a2e);
    margin: 0;
    letter-spacing: -0.3px;
}

.explore-section__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--gp-green, #04AE79);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.explore-section__more:hover {
    text-decoration: underline;
}

/* ============================================================
   1. SEARCH
   ============================================================ */
.explore-search {
    padding: 48px 0 32px;
    text-align: center;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.explore-search__title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--gp-text, #1a1a2e);
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.explore-search__input-wrap {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.explore-search__input-wrap:hover {
    border-color: var(--gp-green, #04AE79);
    box-shadow: 0 4px 16px rgba(4, 174, 121, 0.1);
}

.explore-search__icon {
    color: #94a3b8;
    flex-shrink: 0;
    margin-right: 12px;
}

.explore-search__input {
    border: none;
    outline: none;
    font-size: 16px;
    color: #94a3b8;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-family: var(--gp-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.explore-search__chips {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.explore-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gp-text, #1a1a2e);
    text-decoration: none;
    transition: all 0.15s;
}

.explore-chip:hover {
    border-color: var(--gp-green, #04AE79);
    color: var(--gp-green, #04AE79);
    background: #f0fdf4;
}

/* ============================================================
   2. TOP 10
   ============================================================ */
.explore-top10 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.explore-top10__col {
    display: flex;
    flex-direction: column;
}

.explore-top10__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.explore-top10__item:hover {
    background: #f8fafc;
}

.explore-top10__rank {
    font-size: 20px;
    font-weight: 800;
    color: var(--gp-green, #04AE79);
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.explore-top10__img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.explore-top10__info {
    flex: 1;
    min-width: 0;
}

.explore-top10__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--gp-text, #1a1a2e);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-top10__meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
    display: flex;
    gap: 4px;
}

/* ============================================================
   3. EQUIPMENT — horizontal scroll
   ============================================================ */
.explore-hscroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.explore-hscroll::-webkit-scrollbar {
    display: none;
}

.explore-hscroll > * {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.explore-hscroll > .gp-card {
    width: 240px;
}
.explore-hscroll > .gp-card .gp-card__title {
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Desktop: 4-column grid instead of horizontal scroll */
@media (min-width: 1024px) {
    .explore-hscroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        overflow-x: visible;
    }
    .explore-hscroll > .gp-card {
        width: auto;
    }
}

/* ============================================================
   4. TOURNAMENTS
   ============================================================ */
.explore-tournaments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.explore-tournament-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.explore-tournament-card__header {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.explore-tournament-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gp-text, #1a1a2e);
    margin-bottom: 4px;
}

.explore-tournament-card__meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    gap: 6px;
    align-items: center;
}

.explore-tournament-card__tour {
    font-weight: 700;
    color: var(--gp-green, #04AE79);
}

.explore-tournament-card__leaderboard {
    padding: 8px 16px;
}

.explore-lb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
}

.explore-lb-row + .explore-lb-row {
    border-top: 1px solid #f8fafc;
}

.explore-lb-row--hero {
    background: #f0fdf4;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 4px;
}

.explore-lb-row__pos {
    font-weight: 700;
    width: 28px;
    text-align: center;
    color: #64748b;
    flex-shrink: 0;
}

.explore-lb-row__flag {
    font-size: 16px;
    flex-shrink: 0;
}

.explore-lb-row__name {
    flex: 1;
    font-weight: 600;
    color: var(--gp-text, #1a1a2e);
    text-decoration: none;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.explore-lb-row__name:hover {
    color: var(--gp-green, #04AE79);
}

.explore-lb-row__score {
    font-weight: 800;
    color: #e74c3c;
    flex-shrink: 0;
}

.explore-tournament-card__link {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gp-green, #04AE79);
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.explore-tournament-card__link:hover {
    background: #f0fdf4;
}

/* ============================================================
   5. TRENDING PLAYERS
   ============================================================ */
.explore-players {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.explore-player-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    flex: 1 1 180px;
    min-width: 180px;
    max-width: 260px;
}

.explore-player-chip:hover {
    border-color: var(--gp-green, #04AE79);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.explore-player-chip__img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.explore-player-chip__placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gp-green, #04AE79);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.explore-player-chip__info {
    min-width: 0;
}

.explore-player-chip__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gp-text, #1a1a2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.explore-player-chip__detail {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ============================================================
   6. COMMUNITY
   ============================================================ */
.explore-community {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.explore-community-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.explore-community-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.explore-community-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.explore-community-card__author {
    font-size: 13px;
    font-weight: 700;
    color: var(--gp-text, #1a1a2e);
}

.explore-community-card__time {
    font-size: 11px;
    color: #94a3b8;
}

.explore-community-card__badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 8px;
}

.explore-community-card__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gp-text, #1a1a2e);
    margin-bottom: 12px;
}

.explore-community-card__image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    max-height: 200px;
    object-fit: cover;
}

.explore-community-card__actions {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
}

/* ============================================================
   7. PHOTO GALLERIES
   ============================================================ */
.explore-album-card {
    display: block;
    width: 240px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.explore-album-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.explore-album-card__image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.explore-album-card__count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.explore-album-card__body {
    padding: 10px 12px;
}

.explore-album-card__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-album-card__date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* ============================================================
   8. INTERACTIVE CTAs
   ============================================================ */
.explore-interactive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.explore-cta-card {
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.explore-cta-card--contest {
    background: linear-gradient(135deg, #0f2e1e, #1a4a32);
    color: #fff;
}

.explore-cta-card--quiz {
    background: linear-gradient(135deg, #0a1628, #1e3a5f);
    color: #fff;
}

.explore-cta-card__icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.explore-cta-card__title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.explore-cta-card__text {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 16px;
    line-height: 1.4;
}

.explore-cta-card__btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gp-green, #04AE79);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.explore-cta-card__btn:hover {
    background: #039969;
}

/* ============================================================
   9. DESTINATIONS
   ============================================================ */
.explore-dest-card {
    display: block;
    width: 220px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.explore-dest-card:hover {
    transform: translateY(-3px);
}

.explore-dest-card__image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.explore-dest-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.explore-dest-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.explore-dest-card__count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* ============================================================
   10. TRAINING GRID
   ============================================================ */
.explore-training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .explore-top10 {
        grid-template-columns: 1fr;
    }

    .explore-tournaments {
        grid-template-columns: 1fr 1fr;
    }

    .explore-training-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .explore-section {
        padding: 28px 0;
    }

    .explore-search {
        padding: 32px 0 24px;
    }

    .explore-search__title {
        font-size: 1.5rem;
    }

    .explore-section__title {
        font-size: 18px;
    }

    .explore-top10 {
        grid-template-columns: 1fr;
    }

    .explore-top10__img {
        width: 44px;
        height: 44px;
    }

    .explore-tournaments {
        grid-template-columns: 1fr;
    }

    .explore-players {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .explore-players::-webkit-scrollbar {
        display: none;
    }

    .explore-player-chip {
        flex: 0 0 auto;
        min-width: 200px;
    }

    .explore-community {
        grid-template-columns: 1fr;
    }

    .explore-interactive {
        grid-template-columns: 1fr;
    }

    .explore-training-grid {
        grid-template-columns: 1fr;
    }

    .explore-hscroll > .gp-card {
        width: 200px;
    }

    .explore-album-card {
        width: 200px;
    }

    .explore-dest-card {
        width: 180px;
    }
}

/* Image placeholders */
.explore-album-card__image--placeholder,
.explore-dest-card__image--placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.explore-dest-card__image--placeholder .explore-dest-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.15) 100%);
}
