/* ديمو سونج CSS - للاستخدام في demo.song4you.online */

/* تحسين التجاوب */
@media (max-width: 768px) {
    .free-songs-header {
        padding: 60px 15px;
        margin-top: 60px;
    }
    
    .free-songs-header h1 {
        font-size: 1.8rem;
    }
    
    .free-songs-header p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .featured-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .song-card {
        margin-bottom: 20px;
    }
    
    .player-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* فلتر الأغاني */
.filters-section {
    background: white;
    padding: 40px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
    background: white;
}

.clear-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #ddd;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    opacity: 0;
    transition: all 0.3s ease;
}

.clear-btn.show {
    opacity: 1;
}

.clear-btn:hover {
    background: #ccc;
}

.filter-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.filter-group h4 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group h4 i {
    color: #2575fc;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    border-color: #2575fc;
}

.filter-btn:hover:not(.active) {
    border-color: #2575fc;
    color: #2575fc;
    transform: translateY(-2px);
}

.filter-btn i {
    margin-left: 5px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    min-height: 50px;
}

.active-filter {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.remove-filter {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-filter:hover {
    background: rgba(255,255,255,0.3);
}

/* إحصائيات */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa, #eef2ff);
    padding: 40px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: #2575fc;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* بطاقات الأغاني */
.songs-list-section {
    padding: 60px 0;
    background: white;
}

#filterStatus {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.songs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.song-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.song-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.song-card.featured {
    border: 2px solid #ffd700;
    background: linear-gradient(to bottom right, #fff8e1, #fffde7);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffd700;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.song-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.song-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    flex: 1;
}

.song-duration {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.song-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-image i {
    font-size: 4rem;
    color: rgba(37, 117, 252, 0.3);
}

.song-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-item {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #2575fc;
}

.player-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.play-btn, .pause-btn, .like-btn, .order-btn, .share-btn {
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.play-btn {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    flex: 1;
}

.pause-btn {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    flex: 1;
}

.like-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.order-btn {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
}

.share-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.play-btn:hover, .pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.like-btn:hover {
    border-color: #ff416c;
    color: #ff416c;
}

.order-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.share-btn:hover {
    border-color: #2575fc;
    color: #2575fc;
}

.player-stats {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.85rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat i {
    color: #2575fc;
}

.loading-songs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-songs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.no-songs i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-songs h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-songs a {
    color: #2575fc;
    text-decoration: none;
}

.no-songs a:hover {
    text-decoration: underline;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 117, 252, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* مشغل الموسيقى العائم */
.floating-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.3);
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

.floating-player.show {
    transform: translateY(0);
}

.player-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.player-info {
    flex: 1;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.now-playing i {
    color: #ffd700;
}

#nowPlayingTitle {
    font-weight: 600;
    font-size: 1.1rem;
}

.player-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #ffd700;
    width: 0%;
    transition: width 0.3s ease;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.player-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.demo-link {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #bbb;
}

@media (max-width: 768px) {
    .player-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .player-controls {
        width: 100%;
        justify-content: center;
    }
    
    .songs-container {
        grid-template-columns: 1fr;
    }
    
    .filter-categories {
        grid-template-columns: 1fr;
    }
}