/* ===== DISCOVER PAGE ===== */
.discover-page {
    padding: 40px;
    box-sizing: border-box;
    margin-left: 260px;
    margin-top: 72px;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
}

/* ── Ambient Background Orbs ── */
.discover-page::before,
.discover-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    animation: disc-orb-float 8s ease-in-out infinite;
}

.discover-page::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    top: -5%;
    left: 15%;
}

.discover-page::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    bottom: -5%;
    right: 10%;
    animation-delay: -4s;
}

body.dark-theme .discover-page::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

body.dark-theme .discover-page::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

@keyframes disc-orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

@media (min-width: 769px) {
    body.sidebar-collapsed .discover-page {
        margin-left: 64px;
    }
}

@media (max-width: 768px) {
    .discover-page {
        margin-left: 0;
    }
}

/* Hero Banner */
.discover-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 40%, #0d3a2e 100%);
    display: flex;
    align-items: center;
    padding: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.discover-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.discover-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.discover-hero-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    animation: particle-float 6s ease-in-out infinite;
}

.discover-hero-particles span:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.discover-hero-particles span:nth-child(2) {
    left: 25%;
    top: 70%;
    animation-delay: 1s;
    animation-duration: 5s;
    width: 3px;
    height: 3px;
}

.discover-hero-particles span:nth-child(3) {
    left: 55%;
    top: 15%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.discover-hero-particles span:nth-child(4) {
    left: 70%;
    top: 60%;
    animation-delay: 0.5s;
    animation-duration: 6s;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.5);
}

.discover-hero-particles span:nth-child(5) {
    left: 85%;
    top: 30%;
    animation-delay: 3s;
    animation-duration: 5s;
}

.discover-hero-particles span:nth-child(6) {
    left: 40%;
    top: 80%;
    animation-delay: 1.5s;
    animation-duration: 9s;
    width: 3px;
    height: 3px;
}

.discover-hero-particles span:nth-child(7) {
    left: 90%;
    top: 75%;
    animation-delay: 2.5s;
    animation-duration: 6s;
}

.discover-hero-particles span:nth-child(8) {
    left: 15%;
    top: 50%;
    animation-delay: 4s;
    animation-duration: 7s;
    background: rgba(245, 158, 11, 0.4);
    width: 3px;
    height: 3px;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

.discover-hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.discover-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.discover-hero-badge i {
    font-size: 10px;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.discover-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.discover-hero h1 span {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discover-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.discover-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.discover-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.discover-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    text-decoration: none;
}

.discover-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.discover-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.discover-hero-visual {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 16px;
    align-items: center;
}

.discover-hero-stat-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.discover-hero-stat-card:hover {
    transform: translateY(-4px);
}

.discover-hero-stat-card:nth-child(2) {
    transform: translateY(20px);
}

.discover-hero-stat-card:nth-child(2):hover {
    transform: translateY(16px);
}

.hero-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #10b981;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    white-space: nowrap;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #10b981;
}

.section-title span.badge-count {
    background: #ecfdf5;
    color: #10b981;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
}

.section-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s;
}

.section-see-all:hover {
    gap: 10px;
    text-decoration: none;
}

/* Category Grid */
.discover-categories {
    margin-bottom: 60px;
}

.discover-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.discover-cat-card {
    /* Glassmorphism Light Mode */
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: #374151;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.discover-cat-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
    text-decoration: none;
    color: #111827;
}

.discover-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s;
}

.discover-cat-card:hover .discover-cat-icon {
    transform: scale(1.1);
}

.discover-cat-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.discover-cat-count {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

/* Trending Section */
.discover-trending {
    margin-bottom: 60px;
}

.trending-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.trending-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Glassmorphism Light Mode */
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.trending-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    min-height: 200px;
}

.trending-card.featured .trending-card-img {
    aspect-ratio: auto;
    min-height: 340px;
}

.trending-card-img-placeholder {
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    gap: 8px;
}

.trending-card.featured .trending-card-img-placeholder {
    min-height: 340px;
    font-size: 72px;
}

.trending-card-body {
    padding: 20px;
}

.trending-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.trending-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card.featured .trending-card-title {
    font-size: 20px;
}

.trending-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.trending-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.trending-card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.trending-card-price {
    font-size: 16px;
    font-weight: 800;
    color: #10b981;
}

.trending-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tags / Topics Cloud */
.discover-topics {
    margin-bottom: 60px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid transparent;
}

.topic-tag:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Collections */
.discover-collections {
    margin-bottom: 60px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.collection-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 220px;
    text-decoration: none;
    display: block;
    transition: transform 0.35s ease, box-shadow 0.35s;
    /* Glassmorphism Inner Shadow */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.collection-card:hover {
    transform: scale(1.02);
    text-decoration: none;
}

.collection-card-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.collection-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.collection-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    color: #fff;
}

.collection-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.collection-card-count {
    font-size: 13px;
    opacity: 0.8;
}

/* ===== DARK THEME ===== */
body.dark-theme .discover-hero {
    background: linear-gradient(135deg, #060d1a 0%, #0d1a30 40%, #071a14 100%);
}

body.dark-theme .section-title {
    color: #f1f5f9;
}

body.dark-theme .section-title span.badge-count {
    background: rgba(16, 185, 129, 0.15);
}

body.dark-theme .discover-cat-card {
    /* Glassmorphism Dark Mode */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(16, 185, 129, 0.02);
}

body.dark-theme .discover-cat-card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    color: #f1f5f9;
}

body.dark-theme .discover-cat-count {
    color: #6b7280;
}

body.dark-theme .trending-card {
    /* Glassmorphism Dark Mode */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 16px 32px rgba(0, 0, 0, 0.2);
}

body.dark-theme .trending-card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

body.dark-theme .trending-card-title {
    color: #f1f5f9;
}

body.dark-theme .trending-card-img-placeholder {
    background: #252525;
}

body.dark-theme .collection-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .discover-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .trending-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trending-card.featured {
        grid-column: span 2;
    }

    .discover-hero-visual {
        display: none;
    }

    .discover-hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .discover-page {
        padding: 20px 16px;
    }

    .discover-hero {
        height: auto;
        padding: 40px 24px;
        min-height: 320px;
    }

    .discover-hero h1 {
        font-size: 28px;
    }

    .discover-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .trending-card.featured {
        grid-column: auto;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   KEŞFET SAYFASI — MODERN SKELETON
   =================================================== */
.discover-skeleton-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

body.dark-theme .discover-skeleton-overlay {
    background: #141414;
}

.csk-header {
    height: 380px;
    border-radius: 20px;
    background: linear-gradient(90deg, #e2e8f0 25%, #d1d9e6 50%, #e2e8f0 75%);
    background-size: 400% 100%;
    animation: discSkeleton 1.5s ease-in-out infinite;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 48px;
    flex-shrink: 0;
}

body.dark-theme .csk-header {
    background: linear-gradient(90deg, #1e293b 25%, #2d3f55 50%, #1e293b 75%);
    background-size: 400% 100%;
}

.csk-box {
    border-radius: 16px;
    background: linear-gradient(90deg, #e2e8f0 25%, #d1d9e6 50%, #e2e8f0 75%);
    background-size: 400% 100%;
    animation: discSkeleton 1.5s ease-in-out infinite;
    height: 20px;
}

body.dark-theme .csk-box {
    background: linear-gradient(90deg, #1e293b 25%, #2d3f55 50%, #1e293b 75%);
    background-size: 400% 100%;
}

@keyframes discSkeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}