/**
 * KORYA - Styles spécifiques à la page d'accueil
 * Version: 1.0.0
 */

/* ============================================
   NOTIFICATION VIDÉO FLOTTANTE BOTTOM-RIGHT
   ============================================ */
.video-notification-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    pointer-events: none;
}

.video-notification {
    pointer-events: auto;
    width: 360px;
    background: var(--bg-card, #1a1a2e);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 102, 204, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 204, 0.5);
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

.video-notification.hide {
    animation: slideOutRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.notification-video-container {
    position: relative;
    cursor: pointer;
    background: #000;
}

.notification-video-container video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.notification-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff0066, #ff4444);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.notification-badge i { margin-right: 5px; }

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.notification-close:hover {
    background: rgba(255, 68, 68, 0.9);
    transform: scale(1.1);
}

.notification-info {
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.05));
}

.notification-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light, #fff);
}

.notification-info h4 a {
    color: inherit;
    text-decoration: none;
}

.notification-info h4 a:hover { color: var(--primary, #0066cc); }

.notification-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-gray, #888);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #0066cc), #00aaff);
    width: 100%;
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 768px) {
    .video-notification-container {
        bottom: 80px;
        right: 15px;
        left: auto;
    }
    .video-notification { width: 320px; }
}

/* ============================================
   RESPONSIVE GLOBAL
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 80%;
        text-align: center;
    }
    
    .genre-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .genre-item {
        padding: 15px;
    }
    
    .genre-item i {
        font-size: 28px;
    }
    
    .genre-item span {
        font-size: 14px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 14px;
    }
    
    .search-form-large input {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .search-form-large button {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .genre-grid {
        grid-template-columns: 1fr;
    }
    
    .music-card h3 {
        font-size: 14px;
    }
    
    .artist-card h4 {
        font-size: 14px;
    }
    
    .price {
        font-size: 12px;
    }
    
    .btn-buy-small {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ============================================
   CARROUSEL STYLES
   ============================================ */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    margin: 0 -10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 25px;
}

.carousel-slide {
    flex: 0 0 auto;
    width: calc(20% - 20px);
}

@media (max-width: 1200px) {
    .carousel-slide { width: calc(25% - 20px); }
}

@media (max-width: 992px) {
    .carousel-slide { width: calc(33.33% - 20px); }
}

@media (max-width: 768px) {
    .carousel-slide { width: calc(50% - 20px); }
}

@media (max-width: 480px) {
    .carousel-slide { width: calc(100% - 20px); }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary, #0066cc);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary, #0066cc);
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: var(--primary, #0066cc);
}


/* ============================================ */
/* NOTIFICATION VIDÉO FLOTTANTE BOTTOM-RIGHT   */
/* ============================================ */

.video-notification-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    pointer-events: none;
}

.video-notification {
    pointer-events: auto;
    width: 360px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 102, 204, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 204, 0.5);
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.video-notification.hide {
    animation: slideOutRight 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.notification-video-container {
    position: relative;
    cursor: pointer;
    background: #000;
}

.notification-video-container video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.notification-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff0066, #ff4444);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.notification-badge i {
    margin-right: 5px;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.notification-close:hover {
    background: rgba(255, 68, 68, 0.9);
    transform: scale(1.1);
}

.notification-info {
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.05));
}

.notification-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.notification-info h4 a {
    color: inherit;
    text-decoration: none;
}

.notification-info h4 a:hover {
    color: var(--primary);
}

.notification-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-gray);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00aaff);
    width: 100%;
}

/* Pour que le conteneur reste fixe même en scroll */
@media (max-width: 768px) {
    .video-notification-container {
        bottom: 80px;
        right: 15px;
        left: auto;
    }
    
    .video-notification {
        width: 320px;
    }
}

/* Styles pour les vidéos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.video-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-card-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card-info {
    padding: 12px 15px;
}

.video-card-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-card-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-gray);
}

.recommendations-section {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), transparent);
    border-radius: 24px;
    padding: 20px 0;
    margin: 20px 0;
}

.badge-personalized {
    background: linear-gradient(135deg, #0066cc, #00aaff);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .video-card-info h4 {
        font-size: 13px;
    }
    
    .badge-personalized {
        font-size: 10px;
        margin-left: 8px;
    }
}







