/* =====================================================
   EXPLORA KIDS CLUB - Public Library (Explore Page)
   Twinkl-inspired content marketplace
   ===================================================== */

.explore-page {
    padding-top: 90px;
    min-height: 100vh;
    background: #fafafa;
}

/* === HERO HEADER === */
.explore-hero {
    background: linear-gradient(135deg, var(--peach) 0%, var(--peach-light, #FFF5EE) 100%);
    padding: 40px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.explore-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark, #1a1a1a);
    margin-bottom: 6px;
}
.explore-hero p {
    color: var(--gray-500, #888);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* === SEARCH BAR === */
.explore-search {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.explore-search:focus-within {
    border-color: var(--orange, #FF69B4);
    box-shadow: 0 4px 20px rgba(232,115,42,0.12);
}
.explore-search i { color: #aaa; font-size: 1.3rem; }
.explore-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    background: transparent;
    font-family: 'Poppins', sans-serif;
}
.explore-search input::placeholder { color: #bbb; }

/* === TOOLBAR === */
.explore-toolbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    position: sticky;
    top: 65px;
    z-index: 100;
}

/* === FILTER PILLS === */
.explore-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.explore-pills::-webkit-scrollbar { display: none; }

.explore-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 18px;
    border: 2px solid #e9ecef;
    border-radius: 22px;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: #555;
    font-family: 'Poppins', sans-serif;
}
.explore-pill:hover { border-color: var(--orange, #FF69B4); color: var(--orange, #FF69B4); }
.explore-pill.active {
    background: var(--orange, #FF69B4);
    border-color: var(--orange, #FF69B4);
    color: #fff;
}

/* === RESULTS INFO === */
.explore-results-info {
    padding: 16px 0 8px;
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}
.explore-results-info strong { color: #333; }

/* === CONTENT GRID === */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 30px;
}
@media (min-width: 576px) { .explore-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 768px) { .explore-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 992px) { .explore-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1200px) { .explore-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }

/* === RESOURCE CARD === */
.explore-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--orange, #FF69B4);
}

.explore-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: zoom-in;
    background: #f5f5f5;
}
.explore-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.explore-card:hover .explore-card-img img { transform: scale(1.05); }

/* Zoom icon on hover */
.explore-card-img::after {
    content: '\eb1c';
    font-family: 'boxicons';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.explore-card:hover .explore-card-img::after { opacity: 1; }

/* Badges */
.explore-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}
.explore-badge.free { background: #4CAF50; color: #fff; }
.explore-badge.premium { background: rgba(123,94,167,0.9); color: #fff; }

.explore-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.explore-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-card-cat {
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    color: #666;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    width: fit-content;
}

.explore-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 0;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}
.explore-card-btn.download {
    background: var(--orange, #FF69B4);
    color: #fff;
}
.explore-card-btn.download:hover { background: #E5559E; color: #fff; }

/* === PAGINATION === */
.explore-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 40px;
}
.explore-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
}
.explore-pagination a:hover { border-color: var(--orange, #FF69B4); color: var(--orange, #FF69B4); }
.explore-pagination a.active {
    background: var(--orange, #FF69B4);
    color: #fff;
    border-color: var(--orange, #FF69B4);
}
.explore-pagination a.disabled { opacity: 0.4; pointer-events: none; }

/* === EMPTY STATE === */
.explore-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.explore-empty i { font-size: 3.5rem; margin-bottom: 12px; color: #ddd; }
.explore-empty p { font-size: 1rem; margin: 0; }

/* === MOBILE === */
@media (max-width: 767px) {
    .explore-hero { padding: 28px 0 20px; }
    .explore-hero h1 { font-size: 1.4rem; }
    .explore-search { padding: 10px 14px; }
    .explore-card-title { font-size: 0.78rem; }
    .explore-card-body { padding: 10px; }
    .explore-card-btn { font-size: 0.76rem; padding: 8px 0; }
}
@media (max-width: 575px) {
    .explore-hero h1 { font-size: 1.2rem; }
}
