﻿.explore-wrapper .content-body,
body:has(.explore-wrapper) .content-body {
    margin: 0 !important;
}

.explore-wrapper {
    min-height: 100vh;
}

/* ============================================
   HERO SECTION (Page 1)
   ============================================ */
.explore-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow: hidden;
    background: var(--explore-hero-bg, var(--page-bg));
}

/* Gradient background with dark mode support */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, var(--explore-hero-gradient-1, rgba(247, 37, 133, 0.18)) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 20%, var(--explore-hero-gradient-2, rgba(129, 5, 189, 0.15)) 0%, transparent 50%),
        radial-gradient(ellipse 70% 70% at 50% 50%, var(--explore-hero-gradient-3, rgba(238, 227, 248, 0.5)) 0%, transparent 60%),
        var(--explore-hero-bg, var(--page-bg));
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.hero-title {
    font-size: 28px;
    font-weight: 600;
    background: var(--linear-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    margin: 0 0 32px;
}

/* Emoji should not have gradient */
.hero-title .emoji {
    -webkit-text-fill-color: initial;
    background: none;
}

.hero-search {
    position: relative;
    /* max-width: 560px; */
    width: 100%;
    margin: 0 auto 32px;
}

.hero-search-input {
    width: 100%;
    height: 50px;
    padding: 0 56px 0 24px;
    border: 1px solid var(--explore-search-border, var(--sidebar-border));
    border-radius: 999px;
    background: var(--explore-search-bg, var(--light-mode-surface));
    font-size: 16px;
    color: var(--color-text-light);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(129, 5, 189, 0.1);
}

.hero-search-input::placeholder {
    color: var(--explore-search-placeholder, #9AA1A9);
}

.hero-search .search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag-pill {
    height: 32px;
    padding: 0 20px;
    border: 1px solid #8105BD;
    border-radius: 8px;
    background-color: #FCF8FF;
    color: #011212;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag-pill:hover {
    background-color: #8105BD;
    color: #ffffff;
}

.tag-pill.active {
    background-color: #8105BD;
    color: #ffffff;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-arrow img {
    width: 32px;
    height: 32px;
}

[data-bs-theme="dark"] .scroll-arrow img {
    filter: brightness(0) saturate(100%) invert(28%) sepia(89%) saturate(2837%) hue-rotate(265deg) brightness(93%) contrast(100%);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* ============================================
   CONTENT SECTION (Page 2)
   ============================================ */
.explore-content-section {
    padding: 80px 24px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-header {
    text-align: center;
    margin-bottom: 20px;
}

.content-title {
    font-size: 36px;
    font-weight: 600;
    background: var(--linear-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
    display: inline-block;
    contain: fit-content;
}

.content-search {
    position: relative;
    /* max-width: 560px; */
    width: 100%;
    margin: 0 auto;
    border-radius: 999px;
    padding: 1px;
    background: transparent;
    transition: background 0.2s;
}

.content-search:has(.content-search-input:focus) {
    background: var(--linear-color);
}

.content-search-input {
    position: relative;
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 48px 0 20px;
    border: 1px solid var(--explore-search-border, var(--sidebar-border));
    border-radius: 999px;
    background: var(--explore-search-bg, var(--light-mode-surface));
    font-size: 15px;
    color: var(--color-text-light);
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.content-search-input:focus {
    border: 1px solid transparent;
}

.content-search-input::placeholder {
    color: var(--primary-color);
    opacity: 0.5;
}

.content-search .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.content-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 100px;
}

/* ============================================
   EXPLORE BANNER
   ============================================ */
.explore-banner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background: #FFEAD6;
    border-radius: 24px;
    padding: 20px 48px;
    margin-bottom: 32px;
    position: relative;
    overflow: visible;
    min-height: 100px;
}

.banner-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-desc {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.banner-heart-btn {
    position: absolute;
    bottom: 20px;
    left: 48px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.banner-heart-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.banner-heart-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.banner-image {
    position: absolute;
    right: 40px;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    height: auto;
}

.banner-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ============================================
   FEATURES HEADER
   ============================================ */
.features-header {
    text-align: center;
    margin-bottom: 24px;
}

.features-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 10px;
}

/* Dark mode: use green color */
[data-bs-theme="dark"] .features-title {
    color: var(--linear-color);
}

/* All Features Wrapper */
.all-features-wrapper {
    background:  var(--feature-surface);
    border-radius: 24px;
    padding: 10px 20px;
    border: 1px solid var(--explore-card-border, var(--sidebar-border));
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

/* Scrollable gallery inside wrapper */
.all-features-wrapper .gallery-scroll-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 24px;
}

.all-features-wrapper .gallery-scroll-container::-webkit-scrollbar {
    display: block !important;
    width: 6px;
}

.all-features-wrapper .gallery-scroll-container::-webkit-scrollbar-track {
    background: var(--sidebar-border);
    border-radius: 3px;
}

.all-features-wrapper .gallery-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* View all fixed at bottom */
.all-features-wrapper .view-all-wrapper {
    padding-top: 16px;
    border-top: 1px solid var(--explore-card-border, var(--sidebar-border));
    margin-top: auto;
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.all-features-wrapper .gallery-grid {
    margin-bottom: 0;
}

/* ============================================
   GALLERY CARD - Figma Style
   ============================================ */
.gallery-card {
    background: var(--explore-card-bg, var(--light-mode-surface));
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--explore-card-border, var(--sidebar-border));
    box-shadow: var(--explore-card-shadow, 0 2px 8px rgba(0, 0, 0, 0.04));
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    outline: none;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--explore-card-shadow-hover, 0 8px 24px rgba(129, 5, 189, 0.12));
    border-color: var(--primary-color);
}

.gallery-card:focus,
.gallery-card:focus-visible {
    outline: none;
    border-color: var(--primary-color);
}

/* Card Image - At Top */
.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #E8E0F0 0%, #F0E8F8 100%);
    margin-bottom: 16px;
}

.card-image .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-card:hover .card-image .image {
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 0;
    flex: 1;
}

.card-favorite {
    cursor: pointer;
    transition: transform 0.2s;
}

.card-favorite:hover {
    transform: scale(1.2);
}

.card-favorite img {
    width: 20px;
    height: 20px;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta img {
    width: 14px;
    height: 14px;
}

.card-description {
    font-size: 13px;
    color: var(--color-text-light);
    opacity: 0.7;
    line-height: 1.5;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-users {
    font-size: 12px;
    color: #888;
}

.card-explore-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.card-explore-btn:hover {
    /* background: var(--primary-color); */
    color: #fff;
}

.favorite-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-mode-surface);
    border: 1px solid var(--sidebar-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.favorite-btn:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-color);
}

.favorite-btn.active {
    background: var(--secondary-light);
    border-color: var(--secondary-color);
}

.favorite-btn img {
    width: 16px;
    height: 16px;
}

.favorite-btn.active img {
    filter: brightness(0) saturate(100%) invert(21%) sepia(98%) saturate(3539%) hue-rotate(316deg) brightness(91%) contrast(101%);
}

/* ============================================
   VIEW ALL
   ============================================ */
.view-all-wrapper {
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.view-all-link:hover {
    opacity: 0.8;
}

.view-all-link img {
    width: 24px;
    height: 24px;
}

/* ============================================
   CARD ANIMATIONS
   ============================================ */
.gallery-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.4s ease forwards;
}

.gallery-card:nth-child(1) { animation-delay: 0.1s; }
.gallery-card:nth-child(2) { animation-delay: 0.15s; }
.gallery-card:nth-child(3) { animation-delay: 0.2s; }
.gallery-card:nth-child(4) { animation-delay: 0.25s; }
.gallery-card:nth-child(5) { animation-delay: 0.3s; }
.gallery-card:nth-child(6) { animation-delay: 0.35s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-image {
        right: 20px;
    }
    
    .banner-image img {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .explore-hero-section {
        min-height: auto;
        padding: 60px 20px 80px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .explore-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px 20px;
        overflow: visible;
        align-items: center;
    }
    
    .banner-content {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .banner-image {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .banner-image img {
        width: 100%;
        height: auto;
        max-width: 300px;
        display: block;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-desc {
        font-size: 16px;
    }
    
    .banner-heart-btn {
        bottom: auto;
        top: 20px;
        left: auto;
        right: 20px;
    }
    
    .all-features-wrapper {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-tags, .content-tags {
        gap: 6px;
    }
    
    .tag-pill {
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }
    
    .explore-banner {
        padding: 30px 20px 15px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-desc {
        font-size: 14px;
    }
    
    .banner-image {
        max-width: 300px;
    }
    
    .banner-image img {
        max-width: 300px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .card-explore-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .explore-content-section {
        padding: 24px 16px;
    }
    
    .explore-banner {
        padding: 24px 16px 12px;
        min-height: auto;
    }
    
    .banner-content {
        margin-bottom: 16px;
    }
    
    .banner-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .banner-desc {
        font-size: 13px;
    }
    
    .banner-image {
        max-width: 280px;
        margin-top: 16px;
    }
    
    .banner-image img {
        max-width: 280px;
    }
    
    .card-image {
        height: 140px;
    }
    
    .all-features-wrapper {
        padding: 16px;
        border-radius: 16px;
    }
}
