/* --- متغیرهای کلی --- */
:root {
    --bg-gradient-1: #0f0c29;
    --bg-gradient-2: #302b63;
    --bg-gradient-3: #24243e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #f0f0f0;
    --accent-color: #9d4edd;
    --accent-glow: rgba(157, 78, 221, 0.6);
    --font-main: 'Poppins', 'Segoe UI', sans-serif;
}

/* --- تنظیمات اولیه و فونت --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to right, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* --- کارت اصلی --- */
.main-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-card .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.5);
}

.main-card h1 {
    font-size: 2.2em;
    font-weight: 600;
    letter-spacing: 1px;
}

.main-card .tagline {
    margin-top: 5px;
    color: #b0b0b0;
    font-weight: 300;
}

/* --- گرید اطلاعات --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.info-label {
    display: block;
    font-size: 0.8em;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-color);
}

/* --- پخش‌کننده موسیقی --- */
.music-player {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

#album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

#album-art.playing {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.player-controls button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.player-controls button:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.player-info {
    flex-grow: 1;
    text-align: left;
}

#track-name {
    font-size: 1em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#volume-slider {
    width: 60px;
    height: 5px;
    background: #444;
    outline: none;
    border-radius: 5px;
    -webkit-appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
}

#volume-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
}

/* --- ویجت شناور دیسکورد --- */
.discord-float-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #7289da;
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.6);
    transition: all 0.3s ease;
    z-index: 1000;
}

.discord-float-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(114, 137, 218, 0.8);
}

.discord-float-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #24243e;
    background-color: #747f8d;
}
.discord-status-dot.online { background-color: #3ba55c; }
.discord-status-dot.idle { background-color: #faa81a; }
.discord-status-dot.dnd { background-color: #ed4245; }

/* --- استایل‌های دکمه‌ها و مودال‌ها --- */
.fab-button {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--accent-glow);
}

#social-menu-toggle {
    top: 30px;
    right: 30px;
}

/* === استایل دکمه دوستان (تغییر کرده) === */
.friends-fab-button {
    top: 30px;
    left: 30px;
    background: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5);
}

.friends-fab-button:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.7);
}

.donate-button {
    bottom: 30px;
    left: 30px;
    background: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

.donate-button:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.7);
}

/* استایل کلی مودال‌ها */
.social-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.social-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

.social-modal-content a {
    display: block;
    padding: 12px 20px;
    margin: 10px 0;
    color: var(--text-color);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-modal-content a:hover {
    background: var(--accent-color);
    transform: translateX(5px);
}

.social-modal-content i {
    margin-right: 10px;
    width: 20px;
}

/* استایل مودال دوستان */
#friends-links-modal .social-modal-content {
    width: 250px;
}

#friends-links-modal h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.friend-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.friend-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.friend-info {
    font-size: 0.9em;
}

.friend-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
}
.friend-status-dot.online { background-color: #3ba55c; }
.friend-status-dot.idle { background-color: #faa81a; }
.friend-status-dot.dnd { background-color: #ed4245; }
.friend-status-dot.offline { background-color: #747f8d; }

/* استایل مودال تایید donate */
.donate-modal-content {
    padding: 40px;
    width: 350px;
}

.donate-modal-content p {
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.6;
}

.donate-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.donate-modal-buttons button, .donate-modal-buttons a {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

#cancel-donate {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

#cancel-donate:hover {
    background: rgba(255, 255, 255, 0.2);
}

#confirm-donate {
    background: #e74c3c;
    color: white;
}

#confirm-donate:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* === استایل ویجت آخرین حمایت‌ها === */
.last-donations-widget {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.last-donations-widget h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #e74c3c;
}

.donation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9em;
}

.donation-item:last-child {
    border-bottom: none;
}

.donation-amount {
    font-weight: bold;
    color: #e74c3c;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}