/* IMPORT GOOGLE MATERIAL ICONS */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
@import url('https://fonts.googleapis.com/css2?family=Material+Icons');

/* VARIABLES DE COULEUR STREAMING */
:root {
    --zik-primary: #68d428;
    --zik-secondary: #2c632a;
    --zik-dark: #0a0f0a;
    --zik-dark-card: #141914;
    --zik-dark-bg: #0d120d;
    --zik-light: #89e04d;
    --zik-lighter: #b0f07c;
    --zik-gradient: linear-gradient(135deg, #68d428 0%, #2c632a 100%);
    --zik-gradient-hover: linear-gradient(135deg, #89e04d 0%, #1e4a1d 100%);
    --zik-glass: rgba(20, 25, 20, 0.7);
    --zik-glass-card: rgba(30, 40, 30, 0.6);
    --zik-text: #ffffff;
    --zik-text-light: #b0b0b0;
    --zik-border: rgba(104, 212, 40, 0.2);
    --zik-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --zik-shadow-hover: 0 12px 40px rgba(104, 212, 40, 0.2);
    --zik-radius: 16px;
    --zik-radius-sm: 12px;
}

/* CONTAINER STREAMING MODERNE */
.zikpawa-products-display {
    max-width: 100%;
    padding: 20px 15px 40px;
    background: linear-gradient(180deg, #0a0f0a 0%, #0d120d 50%, #0a0f0a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* EFFETS DE FOND */
.zikpawa-products-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--zik-primary), transparent);
    z-index: 1;
}

.zikpawa-products-display::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle at center, rgba(104, 212, 40, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* HEADER ARTISTE STREAMING */
.artist-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--zik-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--zik-radius);
    border: 1px solid var(--zik-border);
    box-shadow: var(--zik-shadow);
    position: relative;
    overflow: hidden;
}

.artist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--zik-gradient);
}

.artist-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--zik-primary);
    box-shadow: 0 8px 24px rgba(104, 212, 40, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.artist-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.artist-info h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    background: var(--zik-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(104, 212, 40, 0.2);
    line-height: 1.2;
}

.artist-actions-mobile {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.gift-btn-mobile,
.booking-btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--zik-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(104, 212, 40, 0.3);
    white-space: nowrap;
}

.gift-btn-mobile:hover,
.booking-btn-mobile:hover {
    background: rgba(104, 212, 40, 0.2);
    border-color: var(--zik-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(104, 212, 40, 0.3);
}

.gift-btn-mobile .material-icons,
.booking-btn-mobile .material-icons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* HEADER PAGE STREAMING */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    position: relative;
}

.page-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--zik-text);
    margin: 0 0 15px 0;
    background: var(--zik-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(104, 212, 40, 0.3);
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 18px;
    color: var(--zik-text-light);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FILTRE STREAMING MODERNE */
.products-filter {
    background: var(--zik-glass-card);
    backdrop-filter: blur(20px);
    border-radius: var(--zik-radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--zik-shadow);
    border: 1px solid var(--zik-border);
    position: relative;
    overflow: hidden;
}

.products-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--zik-gradient);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--zik-primary) transparent;
}

.filter-buttons::-webkit-scrollbar {
    height: 4px;
}

.filter-buttons::-webkit-scrollbar-track {
    background: transparent;
}

.filter-buttons::-webkit-scrollbar-thumb {
    background: var(--zik-primary);
    border-radius: 2px;
}

.filter-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--zik-text-light);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: var(--zik-gradient);
    color: white;
    border-color: var(--zik-primary);
    box-shadow: 0 4px 20px rgba(104, 212, 40, 0.4);
}

.filter-btn:not(.active):hover {
    background: rgba(104, 212, 40, 0.1);
    border-color: var(--zik-primary);
    color: var(--zik-text);
}

.filter-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(104, 212, 40, 0.1);
    border-radius: var(--zik-radius-sm);
    color: var(--zik-text);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--zik-border);
    backdrop-filter: blur(10px);
}

#filter-count {
    background: var(--zik-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(104, 212, 40, 0.3);
}

/* GRID STREAMING MODERNE */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* CARD PRODUIT STREAMING */
.product-card {
    background: var(--zik-glass-card);
    backdrop-filter: blur(20px);
    border-radius: var(--zik-radius);
    overflow: hidden;
    box-shadow: var(--zik-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--zik-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--zik-shadow-hover);
    border-color: var(--zik-primary);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(104, 212, 40, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

/* CONTAINER IMAGE STREAMING */
.product-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--zik-dark-card) 0%, var(--zik-secondary) 100%);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--zik-dark-card) 0%, var(--zik-secondary) 100%);
}

.no-image .material-icons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--zik-primary);
    opacity: 0.5;
}

.no-image[data-type="album"] {
    background: linear-gradient(135deg, #1a1f1a 0%, var(--zik-secondary) 100%);
}

.no-image[data-type="song"] {
    background: linear-gradient(135deg, #1a1f1a 0%, #68d428 100%);
}

/* BADGES STREAMING */
.product-type-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(10, 15, 10, 0.9);
    backdrop-filter: blur(10px);
    color: var(--zik-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--zik-border);
    z-index: 2;
}

.product-type-badge .material-icons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.product-sales-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(10, 15, 10, 0.9);
    backdrop-filter: blur(10px);
    color: var(--zik-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--zik-border);
    z-index: 2;
}

.product-sales-badge .material-icons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--zik-primary);
}

/* INFO PRODUIT STREAMING */
.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--zik-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    background: var(--zik-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-artist,
.product-tracks,
.product-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--zik-text-light);
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(104, 212, 40, 0.1);
}

.product-artist .material-icons,
.product-tracks .material-icons,
.product-duration .material-icons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--zik-primary);
}

.product-duration {
    color: var(--zik-light);
}

.product-card[data-type="song"] .product-duration {
    color: var(--zik-lighter);
}

.product-card[data-type="album"] .product-duration {
    color: #89e04d;
}

/* ACTIONS PRODUIT STREAMING */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--zik-border);
}

.buy-btn,
.preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.buy-btn::before,
.preview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.buy-btn:hover::before,
.preview-btn:hover::before {
    left: 100%;
}

.buy-btn {
    background: var(--zik-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(104, 212, 40, 0.3);
}

.buy-btn:hover {
    background: var(--zik-gradient-hover);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(104, 212, 40, 0.5);
}

.preview-btn {
    background: rgba(104, 212, 40, 0.1);
    color: var(--zik-primary);
    border: 2px solid var(--zik-primary);
}

.preview-btn:hover {
    background: var(--zik-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(104, 212, 40, 0.5);
}

.buy-btn .material-icons,
.preview-btn .material-icons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* TOOLTIPS MODERNES */
.buy-btn::after,
.preview-btn::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 10, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid var(--zik-border);
    box-shadow: var(--zik-shadow);
}

.buy-btn:hover::after,
.preview-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
}

/* ACTIONS ARTISTE DESKTOP */
.artist-actions-desktop {
    display: none;
    gap: 20px;
    margin-top: 40px;
}

.gift-btn,
.booking-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: var(--zik-radius);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
    border: none;
}

.gift-btn::before,
.booking-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.gift-btn:hover::before,
.booking-btn:hover::before {
    left: 100%;
}

.gift-btn {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.3);
}

.booking-btn {
    background: var(--zik-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(104, 212, 40, 0.3);
}

.gift-btn:hover,
.booking-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(104, 212, 40, 0.4);
}

.gift-btn .material-icons,
.booking-btn .material-icons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

/* ÉTAT AUCUN PRODUIT STREAMING */
.no-products-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    text-align: center;
    background: var(--zik-glass-card);
    backdrop-filter: blur(20px);
    border-radius: var(--zik-radius);
    border: 1px solid var(--zik-border);
    margin: 40px 0;
}

.no-products-icon {
    width: 120px;
    height: 120px;
    background: rgba(104, 212, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 2px solid var(--zik-primary);
    box-shadow: 0 8px 32px rgba(104, 212, 40, 0.2);
}

.no-products-icon .material-icons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: var(--zik-primary);
}

.no-products-state p {
    font-size: 20px;
    color: var(--zik-text);
    margin: 0;
    max-width: 400px;
    line-height: 1.6;
}

/* ANIMATIONS STREAMING */
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(104, 212, 40, 0.2); }
    50% { box-shadow: 0 8px 32px rgba(104, 212, 40, 0.4); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.product-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.product-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* RESPONSIVE STREAMING */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .page-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-title {
        font-size: 16px;
        min-height: 44px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .product-actions {
        gap: 10px;
    }
    
    .buy-btn,
    .preview-btn {
        width: 44px;
        height: 44px;
    }
    
    .buy-btn .material-icons,
    .preview-btn .material-icons {
        font-size: 22px;
    }
    
    .artist-actions-desktop {
        display: none;
    }
    
    .artist-actions-mobile {
        display: flex;
    }
    
    .artist-photo {
        width: 80px;
        height: 80px;
    }
    
    .artist-info h2 {
        font-size: 24px;
    }
    
    .page-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .product-image-container {
        height: 160px;
    }
    
    .product-title {
        font-size: 15px;
        min-height: 42px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .zikpawa-products-display {
        padding: 15px 10px 30px;
    }
    
    .artist-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .artist-info h2 {
        font-size: 22px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .gift-btn-mobile,
    .booking-btn-mobile {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .page-header h2 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .product-card {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
}

@media (min-width: 769px) {
    .artist-actions-mobile {
        display: none;
    }
    
    .artist-actions-desktop {
        display: flex;
    }
}

/* TOUCH DEVICE OPTIMIZATION */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    
    .buy-btn:hover,
    .preview-btn:hover,
    .gift-btn:hover,
    .booking-btn:hover,
    .filter-btn:hover {
        transform: none;
    }
    
    .buy-btn:active,
    .preview-btn:active {
        transform: scale(0.95);
    }
    
    .buy-btn::after,
    .preview-btn::after {
        display: none;
    }
}

/* LOADING SKELETON */
.product-card.skeleton {
    background: linear-gradient(90deg, var(--zik-dark-card) 25%, var(--zik-secondary) 50%, var(--zik-dark-card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* SCROLLBAR CUSTOM */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--zik-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--zik-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zik-gradient-hover);
}

/* SELECTION TEXT */
::selection {
    background: rgba(104, 212, 40, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(104, 212, 40, 0.3);
    color: white;
}