/* ====================================
   ZIKA - PROFILE (Design Moderne Startup)
   ==================================== */

.profile-new-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========== TRACKS MODERNES ========== */
.profile-tracks-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.track-modern-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-modern-item:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 0, 0.15);
}

/* Track en attente pour compétition à venir */
.track-modern-item.track-pending-competition {
    opacity: 0.7;
    cursor: default;
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.02);
}

.track-modern-item.track-pending-competition:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 215, 0, 0.02);
    border-color: rgba(255, 215, 0, 0.3);
}

.track-competition-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Cover + Play Button */
.track-modern-cover-wrapper {
    position: relative;
    flex-shrink: 0;
}

.track-modern-cover {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.track-modern-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.95);
    border: none;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.4);
}

.track-modern-item:hover .track-modern-play {
    transform: translate(-50%, -50%) scale(1);
}

.track-modern-play:hover {
    background: #00ff00;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Infos */
.track-modern-info {
    flex: 1;
    min-width: 0;
}

.track-modern-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-modern-artist {
    margin: 0;
    font-size: 0.95rem;
    color: #808080;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stats */
.track-modern-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.track-modern-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.track-modern-stats i {
    color: #808080;
    font-size: 0.85rem;
}

/* Bouton Delete */
.track-modern-delete {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.2);
    color: #ff0033;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-modern-delete:hover {
    background: rgba(255, 0, 51, 0.2);
    border-color: rgba(255, 0, 51, 0.4);
    transform: scale(1.05);
}

/* Bouton Share */
.track-modern-share {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    color: #00ff00;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-modern-share:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.4);
    transform: scale(1.05);
}

/* Bouton Unlike (cœur rouge) */
.track-modern-unlike {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.2);
    color: #ff0033;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-modern-unlike:hover {
    background: rgba(255, 0, 51, 0.2);
    border-color: rgba(255, 0, 51, 0.4);
    transform: scale(1.05);
}

.track-modern-unlike i {
    color: #ff0033;
}

/* ========== HEADER ========== */
.profile-new-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.profile-new-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00ff00;
    flex-shrink: 0;
}

.profile-new-info {
    flex: 1;
}

.profile-new-username {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.profile-new-stats {
    font-size: 1rem;
    color: white;
}

.profile-new-stats strong {
    font-weight: 700;
}

.profile-edit-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* ========== TABS FILTRES (ligne 1) ========== */
.profile-filter-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-tab-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab-btn.active {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.profile-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* ========== TABS SECTIONS (ligne 2) ========== */
.profile-section-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-section-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-section-btn.active {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.profile-section-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* ========== CONTENU ========== */
.profile-content {
    margin-top: 2rem;
}

/* ========== LISTE MUSIQUES ========== */
.profile-track-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-track-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
}

.profile-track-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Cover */
.track-cover {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

/* Info */
.track-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-stats {
    display: flex;
    gap: 1rem;
    color: white;
    font-size: 0.9rem;
}

.track-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.track-stats i {
    color: #808080;
}

.track-date {
    font-size: 0.85rem;
    color: #808080;
}

/* Bouton delete */
.btn-delete {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ff0033;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-delete:hover {
    background: #cc0029;
    transform: scale(1.05);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #808080;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    /* Header profil mobile : photo + nom côte à côte */
    .profile-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left;
        gap: 1rem !important;
    }
    
    .profile-header > div:first-child {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        position: relative;
    }
    
    /* Photo plus petite avec bouton éditer plus petit */
    .profile-header > div:first-child img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .profile-header > div:first-child .btn-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
        bottom: -2px !important;
        right: -2px !important;
    }
    
    .profile-header > div:last-child {
        width: 100%;
    }
    
    .profile-info-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .profile-info-wrapper h1 {
        font-size: 1.2rem !important;
    }
    
    /* Bouton éditer en dessous */
    .profile-edit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-stats {
        justify-content: flex-start !important;
    }
    
    .profile-tracks-modern {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .track-modern-item {
        gap: 1rem;
        padding: 1rem;
        display: grid;
        grid-template-columns: 80px 1fr 40px;
        grid-template-rows: auto auto;
    }
    
    .track-modern-cover-wrapper {
        grid-row: 1 / 3;
    }
    
    .track-modern-cover {
        width: 80px;
        height: 80px;
    }
    
    .track-modern-info {
        grid-column: 2;
        grid-row: 1;
    }
    
    .track-modern-stats {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Corbeille/Unlike à côté du titre */
    .track-modern-delete,
    .track-modern-unlike {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }
    
    .track-modern-play {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .track-modern-title {
        font-size: 1rem;
    }
    
    .track-modern-artist {
        font-size: 0.85rem;
    }
    
    .track-modern-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        font-size: 0.85rem;
    }
    
    .track-modern-delete {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .profile-new-container {
        padding: 1rem;
    }
    
    .profile-new-header {
        flex-direction: column;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    
    .profile-new-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-new-username {
        font-size: 1.3rem;
    }
    
    .profile-filter-tabs,
    .profile-section-tabs {
        flex-wrap: wrap;
    }
    
    .profile-tab-btn,
    .profile-section-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .profile-track-list {
        grid-template-columns: 1fr;
    }
    
    .profile-track-item {
        grid-template-columns: 80px 1fr auto;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .track-cover {
        width: 80px;
        height: 80px;
    }
    
    .track-title {
        font-size: 0.95rem;
    }
    
    .track-stats {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
    
    .track-date {
        font-size: 0.8rem;
    }
    
    .btn-delete {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .track-modern-item {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .track-modern-cover {
        width: 70px;
        height: 70px;
    }
    
    .track-modern-play {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .track-modern-info {
        flex: 1;
        min-width: 150px;
    }
    
    .track-modern-title {
        font-size: 0.95rem;
    }
    
    .track-modern-artist {
        font-size: 0.8rem;
    }
    
    .track-modern-stats {
        width: 100%;
        flex-direction: row;
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .track-modern-delete {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .profile-new-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-new-username {
        font-size: 1.1rem;
    }
    
    .profile-new-stats {
        font-size: 0.9rem;
    }
    
    .profile-track-item {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
    }
    
    .track-cover {
        width: 70px;
        height: 70px;
        grid-row: 1 / 3;
    }
    
    .track-info {
        grid-column: 2;
        grid-row: 1;
    }
    
    .btn-delete {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        width: 36px;
        height: 36px;
    }
}
