/* =====================================================
   MARKETS SECTION - Horizontal Scroll Tiles (Netflix Style)
   ===================================================== */

.glamzn-markets-section {
    padding: 10px 0 40px 0;
    background: #fff;
}

.dark .glamzn-markets-section {
    background: #0f172a;
}

/* Header */
.glamzn-markets-header {
    padding: 0 16px;
    margin-bottom: 24px;
}

.glamzn-markets-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid #dc2626;
}

.glamzn-markets-title-bar i {
    font-size: 20px;
    color: #dc2626;
}

.glamzn-markets-title-bar h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.glamzn-markets-title-bar a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.glamzn-markets-title-bar a:hover {
    color: #dc2626;
}

.dark .glamzn-markets-title-bar a {
    color: #fff;
}

/* Subcategories */
.glamzn-markets-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.glamzn-markets-subcat {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    transition: all 0.3s;
    cursor: pointer;
}

.glamzn-markets-subcat:hover {
    background: #dc2626;
    color: #fff;
}

.glamzn-markets-subcat.active {
    background: #dc2626;
    color: #fff;
    font-weight: 600;
}

.dark .glamzn-markets-subcat {
    background: #1e293b;
    color: #94a3b8;
}

.dark .glamzn-markets-subcat:hover,
.dark .glamzn-markets-subcat.active {
    background: #dc2626;
    color: #fff;
}

/* Horizontal Scroll Container */
.glamzn-markets-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 16px 16px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #f1f5f9;
}

/* Custom Scrollbar for Webkit browsers */
.glamzn-markets-scroll::-webkit-scrollbar {
    height: 8px;
}

.glamzn-markets-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.dark .glamzn-markets-scroll::-webkit-scrollbar-track {
    background: #1e293b;
}

.glamzn-markets-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    border-radius: 10px;
}

.glamzn-markets-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #b91c1c, #991b1b);
}

/* Markets Tile */
.glamzn-markets-tile {
    min-width: 350px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.glamzn-markets-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.2);
    z-index: 10;
}

.dark .glamzn-markets-tile {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.dark .glamzn-markets-tile:hover {
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.3);
}

.glamzn-markets-tile a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Tile Image */
.glamzn-markets-tile-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.glamzn-markets-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glamzn-markets-tile:hover .glamzn-markets-tile-img img {
    transform: scale(1.15);
}

/* Overlay */
.glamzn-markets-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glamzn-markets-tile:hover .glamzn-markets-overlay {
    opacity: 1;
}

/* Badge */
.glamzn-markets-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Tile Content */
.glamzn-markets-tile-content {
    padding: 16px;
}

.glamzn-markets-tile-content h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.glamzn-markets-tile:hover h3 {
    color: #dc2626;
}

.dark .glamzn-markets-tile-content h3 {
    color: #fff;
}

/* Meta */
.glamzn-markets-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.dark .glamzn-markets-meta {
    color: #94a3b8;
}

.glamzn-markets-meta i {
    font-size: 11px;
    margin-right: 3px;
}

.glamzn-markets-date,
.glamzn-markets-time {
    display: flex;
    align-items: center;
}

.glamzn-markets-time {
    color: #dc2626 !important;
    font-weight: 600;
}

.dark .glamzn-markets-time {
    color: #f87171 !important;
}

/* =====================================================
   RESPONSIVE - Tablet
   ===================================================== */

@media (max-width: 1024px) {
    .glamzn-markets-tile {
        min-width: 320px;
    }

    .glamzn-markets-tile-img {
        height: 180px;
    }
}

/* =====================================================
   RESPONSIVE - Mobile
   ===================================================== */

@media (max-width: 768px) {
    .glamzn-markets-section {
        padding: 16px 0 30px 0;
    }

    .glamzn-markets-header {
        padding: 0 12px;
        margin-bottom: 20px;
    }

    .glamzn-markets-title-bar h2 {
        font-size: 18px;
    }

    .glamzn-markets-title-bar i {
        font-size: 18px;
    }

    .glamzn-markets-subcats {
        gap: 6px;
    }

    .glamzn-markets-subcat {
        font-size: 11px;
        padding: 3px 10px;
    }

    .glamzn-markets-scroll {
        gap: 12px;
        padding: 0 12px 12px 12px;
    }

    .glamzn-markets-tile {
        min-width: 280px;
    }

    .glamzn-markets-tile-img {
        height: 160px;
    }

    .glamzn-markets-tile-content {
        padding: 12px;
    }

    .glamzn-markets-tile-content h3 {
        font-size: 14px;
    }

    .glamzn-markets-meta {
        font-size: 10px;
        gap: 10px;
    }
}

/* =====================================================
   RESPONSIVE - Small Mobile
   ===================================================== */

@media (max-width: 480px) {
    .glamzn-markets-section {
        padding: 14px 0 24px 0;
    }

    .glamzn-markets-header {
        padding: 0 10px;
        margin-bottom: 16px;
    }

    .glamzn-markets-scroll {
        padding: 0 10px 10px 10px;
        gap: 10px;
    }

    .glamzn-markets-tile {
        min-width: 260px;
    }

    .glamzn-markets-tile-img {
        height: 150px;
    }

    .glamzn-markets-tile-content h3 {
        font-size: 13px;
    }

    .glamzn-markets-subcats {
        gap: 4px;
    }

    .glamzn-markets-subcat {
        font-size: 10px;
        padding: 3px 8px;
    }
}
