/* استيراد الخطوط العربية */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700&display=swap');

/* المتغيرات الأساسية */
:root {
    --primary-gold: #d4af37;
    --secondary-gold: #ffd700;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-light: #ffffff;
    --text-gold: #d4af37;
    --accent-color: #b8860b;
    --border-gold: #daa520;
    --shadow-gold: rgba(212, 175, 55, 0.3);
    --gradient-gold: linear-gradient(135deg, #d4af37, #ffd700, #b8860b);
}

/* إعادة تعيين الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Amiri', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* الحاوي الرئيسي */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر */
.header {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    padding: 20px 0;
    box-shadow: 0 2px 20px var(--shadow-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--dark-bg);
    font-weight: bold;
}

.logo-text h1 {
    font-family: 'Amiri', serif;
    font-size: 28px;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 25px;
}

.nav-menu a:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* القسم الرئيسي */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/bg-music-gold.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-family: 'Amiri', serif;
    font-size: 48px;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.artist-info {
    background: rgba(26, 26, 26, 0.9);
    padding: 40px;
    border-radius: 20px;
    margin: 50px auto;
    max-width: 800px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 10px 30px var(--shadow-gold);
}

.artist-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--gradient-gold);
    border-radius: 15px;
    color: var(--dark-bg);
    font-weight: bold;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
}

/* قسم الأغاني */
.songs-section {
    padding: 80px 0;
    background: var(--darker-bg);
}

.section-title {
    text-align: center;
    font-family: 'Amiri', serif;
    font-size: 36px;
    color: var(--primary-gold);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.song-card {
    background: var(--dark-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.song-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-gold);
    border-color: var(--primary-gold);
}

.song-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border: none;
    border-radius: 50%;
    color: var(--dark-bg);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
}

.play-btn:hover::before {
    opacity: 1;
}

.play-btn:active {
    transform: scale(1.05);
}

.song-info {
    padding: 25px;
}

.song-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
}

.song-artist {
    color: var(--primary-gold);
    font-size: 16px;
    margin-bottom: 15px;
}

.song-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.song-rating {
    display: flex;
    gap: 5px;
}

.star {
    color: var(--primary-gold);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star:hover {
    transform: scale(1.2);
}

.song-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--primary-gold);
    border-radius: 25px;
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

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

.action-btn:hover {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: var(--secondary-gold);
}

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

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* مشغل الموسيقى */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    padding: 20px;
    box-shadow: 0 -5px 20px var(--shadow-gold);
    z-index: 1000;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.music-player.active {
    transform: translateY(0);
}

.player-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.current-song {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.current-song-image {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 20px;
}

.current-song-info h4 {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 5px;
}

.current-song-info p {
    color: var(--primary-gold);
    font-size: 14px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.control-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.control-btn:hover::before {
    opacity: 1;
}

.control-btn:active {
    transform: scale(1.05);
}

.control-btn.play-pause {
    width: 55px;
    height: 55px;
    font-size: 22px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.control-btn.play-pause:hover {
    background: linear-gradient(135deg, var(--secondary-gold), #f4d03f);
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.progress-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.7;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 2px;
    width: 70%;
}

/* الفوتر */
.footer {
    background: var(--darker-bg);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-gold);
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Amiri', serif;
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.8;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-light);
    opacity: 0.6;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .artist-info {
        padding: 20px;
        margin: 30px 20px;
    }
    
    .artist-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .songs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .player-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .current-song {
        min-width: auto;
        justify-content: center;
    }
    
    .progress-container {
        max-width: none;
        margin: 0;
        width: 100%;
    }
    
    .volume-control {
        min-width: auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .artist-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* تحسينات إضافية */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--primary-gold);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff6666;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #44ff44;
    color: #66ff66;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}



/* أنماط قائمة المشاركة المنسدلة */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

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

.share-btn:hover {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: var(--secondary-gold);
}

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

.share-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.share-btn:hover i {
    transform: scale(1.1) rotate(15deg);
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-bg);
    border: 2px solid var(--primary-gold);
    border-radius: 10px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.share-option:last-child {
    border-bottom: none;
}

.share-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

.share-option.facebook:hover {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.share-option.twitter:hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.share-option.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.share-option.telegram:hover {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

.share-option.general:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .share-menu {
        right: 0;
        left: auto;
        min-width: 160px;
    }
    
    .song-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .action-btn {
        justify-content: center;
    }
}


/* تأثيرات إضافية للأزرار */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    }
}

/* تطبيق التأثيرات على الأزرار النشطة */
.play-btn.playing {
    animation: pulse 2s infinite;
}

.action-btn:focus {
    animation: glow 1s ease-in-out;
}

.control-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
    animation: glow 2s infinite;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .control-btn.play-pause {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .song-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .action-btn {
        justify-content: center;
    }
}

/* تأثيرات خاصة للمشاركة */
.share-option {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-option:hover {
    transform: translateX(5px);
    padding-left: 20px;
}

/* تأثير الموجة للأزرار */
.action-btn, .share-btn, .control-btn {
    position: relative;
    overflow: hidden;
}

.action-btn:active::after,
.share-btn:active::after,
.control-btn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

