/* Songs List Page - Modern & User-Friendly Design - Full Width Optimized */
* {
    box-sizing: border-box;
}

body {
    background: var(--c-bg);
    min-height: 100vh;
    font-family: var(--font-body);
}

.songs-container {
    max-width: 98vw;
    width: 98vw;
    margin: 20px auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-title {
    background: var(--g-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.songs-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border: 2px solid #4a90e2;
    border-radius: 15px;
    padding: 15px 25px;
    margin-bottom: 20px;
}

.count-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.count-label {
    color: #34495e;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.add-song-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
}

.add-song-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #20c997, #17a2b8);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

.filter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 12px 16px;
    gap: 10px;
    transition: all 0.3s;
    min-width: 300px;
}

.search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box input {
    border: none;
    outline: none;
    font-size: 1rem;
    flex: 1;
    background: transparent;
}

.search-icon {
    color: #667eea;
    font-size: 1.2rem;
}

.sort-dropdown {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.sort-dropdown:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.songs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.song-row {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    width: 100%;
}

.song-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.song-row:hover::before {
    left: 100%;
}

.song-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 1);
}

.song-row-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 14px;
}

.song-compact { display: flex; flex-direction: column; gap: 10px; }

.song-basic { margin-top: 10px; }
.song-basic .song-title { font-size: 1.1rem; margin: 0; }
.song-basic .song-artist { font-size: 0.95rem; margin: 4px 0 0 0; }

.song-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border: 1px solid #e1e8ed;
}
.song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.song-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #667eea;
}
.song-cover-upload {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(102,126,234,0.35);
    border-radius: 10px;
    padding: 6px 8px;
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}
.song-cover-upload:hover { background: rgba(255,255,255,1); }

.song-compact-meta { display: flex; flex-direction: column; gap: 10px; }
.song-levels-line { display: flex; flex-wrap: wrap; gap: 8px; }

.song-hover-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}
.song-row:hover .song-hover-details {
    opacity: 1;
    max-height: 260px;
}

.song-hover-details .song-title { font-size: 1.2rem; }
.song-hover-details .song-artist { font-size: 1rem; }

.song-title-artist {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.song-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.song-artist {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.song-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-badge {
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 4px;
}

.level-badge-accompaniment {
    background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
    border-color: #818cf8;
    color: #3730a3;
}

.level-badge-lead {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-color: #f472b6;
    color: #9d174d;
}

.song-actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: center;
}

.song-list-picker {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.song-list-select {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.song-list-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.song-list-add-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.18);
}

.song-list-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.28);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    justify-content: center;
}

.play-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.edit-btn {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.edit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #20c997, #17a2b8);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: auto;
}

.delete-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #c82333, #a71e2a);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.my-songs-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.my-songs-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.my-songs-btn.added {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.my-songs-btn.added:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.empty-state {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0 0 30px 0;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.browse-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* רוחב מסך גדול מאוד */
@media (min-width: 1800px) {
    .songs-container {
        padding: 0 40px;
    }
    
    .song-row {
        padding: 25px 35px;
    }
}

/* רוחב מסך בינוני-גדול */
@media (min-width: 1400px) and (max-width: 1799px) {
    .songs-container {
        padding: 0 35px;
    }
    
    .song-row {
        padding: 22px 32px;
    }
}

/* רוחב מסך בינוני */
@media (min-width: 1200px) and (max-width: 1399px) {
    .songs-container {
        padding: 0 30px;
    }
    
    .song-row {
        padding: 20px 30px;
    }
}

/* רוחב מסך קטן-בינוני */
@media (min-width: 900px) and (max-width: 1199px) {
    .songs-container {
        padding: 0 25px;
    }
    
    .song-row {
        padding: 18px 25px;
    }
}

/* Responsive Design for mobile */
@media (max-width: 768px) {
    .songs-container {
        padding: 0 15px;
        max-width: 95vw;
        width: 95vw;
    }

    .songs-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
    
    .song-row {
        padding: 14px;
        flex-direction: column;
    }
    
    .song-row-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .song-main-info {
        width: 100%;
    }

    .page-header {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        min-width: 100%;
    }

    .song-actions-row { flex-direction: column; width: 100%; }

    .action-btn {
        padding: 12px;
        width: 100%;
        justify-content: center;
    }

    .song-list-picker {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .song-list-select {
        width: 100%;
        min-width: auto;
    }
    
    .song-title {
        font-size: 1.3rem;
    }
    
    .song-artist {
        font-size: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.my-songs-link-btn {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.my-songs-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    text-decoration: none;
    color: white;
}

.my-songs-link-btn span:first-child {
    font-size: 1.2em;
}
