/* --- متغیرهای کلی --- */
:root {
  --bg-gradient-1: #0f0c29;
  --bg-gradient-2: #302b63;
  --bg-gradient-3: #24243e;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-color: #f0f0f0;
  --text-secondary: #b0b0b0;
  --accent-color: #9d4edd;
  --accent-glow: rgba(157, 78, 221, 0.6);
  --font-main: "Poppins", "Segoe UI", sans-serif;
  --particle-color: rgba(255, 255, 255, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.2);
}

/* --- Light Theme --- */
[data-theme="light"] {
  --bg-gradient-1: #e8e8f0;
  --bg-gradient-2: #d8d8e8;
  --bg-gradient-3: #c8c8d8;
  --card-bg: rgba(255, 255, 255, 0.7);
  --text-color: #1a1a2e;
  --text-secondary: #4a4a5e;
  --accent-color: #7b2cbf;
  --accent-glow: rgba(123, 44, 191, 0.4);
  --particle-color: rgba(123, 44, 191, 0.4);
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--accent-color);
}

[data-theme="light"] .particle {
  background: var(--particle-color);
}

[data-theme="light"] .info-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .info-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .main-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skills-card,
[data-theme="light"] .minecraft-accounts-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skill-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .minecraft-account {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Settings Panel --- */
.settings-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.settings-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #7b2cbf);
  border: none;
  color: white;
  font-size: 1.3em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.3s ease;
}

.settings-toggle:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.settings-dropdown {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 20px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px var(--shadow-color);
}

.settings-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-dropdown h3 {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-label {
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(128, 128, 128, 0.3);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--accent-color), #7b2cbf);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

@media (max-width: 768px) {
  .settings-panel {
    bottom: 80px;
    left: 10px;
  }
  
  .settings-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1em;
  }
  
  .settings-dropdown {
    min-width: 200px;
    padding: 15px;
  }
}

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--bg-gradient-1),
    var(--bg-gradient-2),
    var(--bg-gradient-3)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- Spotify Player --- */
.spotify-player-container {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 350px;
  z-index: 1000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotify-player-container:hover {
  box-shadow: 0 6px 25px rgba(157, 78, 221, 0.3);
}

@media (max-width: 768px) {
  .spotify-player-container {
    width: 280px;
    top: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .spotify-player-container {
    width: 220px;
    top: 10px;
    left: 10px;
  }
}

/* --- Discord Server Widget --- */
.discord-server-widget {
  width: 100%;
  max-width: 320px;
  min-width: 280px;
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
  transition: all 0.3s ease;
  position: relative;
  animation: slideUp 0.8s ease-out 0.25s both;
}

.discord-server-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.35);
}

.discord-widget-header {
  background: linear-gradient(135deg, #5865F2, #7289DA);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.discord-widget-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  color: white;
}

.discord-widget-info {
  flex: 1;
}

.discord-server-name {
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 5px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.discord-server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9em;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3BA55C;
  animation: pulse-status 2s ease-in-out infinite;
}

.status-indicator.online {
  background: #3BA55C;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.15); }
}

.discord-widget-body {
  padding: 20px;
}

.discord-members-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(88, 101, 242, 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
  min-height: 60px;
}

.member-avatar-placeholder {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #5865F2, #7289DA);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3em;
}

.discord-server-stats {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

.stat-item i {
  color: #5865F2;
  font-size: 1.2em;
}

.stat-item span:nth-child(2) {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.2em;
}

.stat-label {
  font-size: 0.8em;
  color: var(--text-secondary);
}

.discord-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-join-btn:hover {
  background: linear-gradient(135deg, #4752C4, #3C45A5);
}

.discord-join-btn i {
  font-size: 1.3em;
}

/* Discord Widget Light Theme */
[data-theme="light"] .discord-server-widget {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(88, 101, 242, 0.2);
}

[data-theme="light"] .discord-members-preview {
  background: rgba(88, 101, 242, 0.08);
}

/* Discord Widget Responsive */
@media (max-width: 768px) {
  .discord-server-widget {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .discord-server-widget {
    max-width: 100%;
  }
  
  .discord-widget-header {
    padding: 15px;
  }
  
  .discord-widget-icon {
    width: 45px;
    height: 45px;
    font-size: 1.4em;
  }
  
  .discord-server-name {
    font-size: 1em;
  }
  
  .discord-widget-body {
    padding: 15px;
  }
}

/* --- Top Buttons Container --- */
.top-buttons-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .top-buttons-container {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    justify-content: center;
  }
}

/* --- تنظیمات اولیه و فونت --- */
@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;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* --- Floating Particles Background --- */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(720deg);
    opacity: 0;
  }
}

/* --- Header Buttons --- */
.header-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.header-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
}

.header-btn:hover::before {
  left: 100%;
}

.header-btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.header-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.header-btn i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.header-btn:hover i {
  transform: scale(1.15);
}

/* Support Button */
.donate-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.35);
}

.donate-btn:hover {
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
  border-color: rgba(255, 107, 107, 0.3);
}

/* Social Media Button */
.social-btn {
  background: linear-gradient(135deg, #4facfe, #00c6fb);
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.35);
}

.social-btn:hover {
  box-shadow: 0 8px 30px rgba(79, 172, 254, 0.5);
  border-color: rgba(79, 172, 254, 0.3);
}

/* Friends Button */
.friends-btn {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.friends-btn:hover {
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
  border-color: rgba(168, 85, 247, 0.3);
}

/* --- Main Layout Container --- */
.main-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* --- Bottom Section - Skills, Discord Widget, Minecraft Side by Side --- */
.bottom-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  width: 100%;
  max-width: 1400px;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
  margin-top: 20px;
  flex-wrap: wrap;
}

.side-card {
  flex: 1;
  max-width: 350px;
  min-width: 280px;
}

/* --- کارت اصلی --- */
.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;
  position: relative;
  z-index: 1;
}

@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);
  transition: all 0.3s ease;
}

/* --- Profile Discord Link with Status --- */
.profile-discord-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
}

.profile-avatar-container .profile-img {
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.profile-discord-link:hover .profile-img {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(157, 78, 221, 0.7);
}

.profile-status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--bg-gradient-3);
  background-color: #747f8d;
  transition: background-color 0.3s ease;
}

.profile-status-dot.online {
  background-color: #3ba55c;
}

.profile-status-dot.idle {
  background-color: #faa81a;
}

.profile-status-dot.dnd {
  background-color: #ed4245;
}

.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);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Skills Section --- */
.skills-card {
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.8s ease-out 0.2s both;
  backdrop-filter: blur(15px);
  overflow: hidden;
  min-width: 280px;
  max-width: 350px;
}

.skills-card h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-item i {
  font-size: 1.3em;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.skill-item i.fa-html5 { color: #e34f26; }
.skill-item i.fa-css3-alt { color: #1572b6; }
.skill-item i.fa-js { color: #f7df1e; }
.skill-item i.fa-python { color: #3776ab; }
.skill-item i.fa-code { color: #00599c; }
.skill-item i.fa-java { color: #f89820; }

.skill-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.85em;
  flex-shrink: 0;
}

.skill-percent {
  font-size: 0.75em;
  color: var(--accent-color);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-left: auto;
}

.skill-item:hover .skill-percent {
  opacity: 1;
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Side Cards Responsive --- */
@media (max-width: 1100px) {
  .main-layout {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .bottom-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .side-card {
    max-width: 450px;
    width: 100%;
  }
  
  .skills-card,
  .minecraft-accounts-card,
  .discord-server-widget {
    max-width: 450px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .bottom-section {
    flex-direction: column;
    align-items: center;
  }
  
  .skills-card,
  .minecraft-accounts-card,
  .discord-server-widget {
    width: 100%;
    max-width: 100%;
  }
}

/* --- Minecraft Accounts Section --- */
.minecraft-accounts-card {
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.8s ease-out 0.3s both;
  backdrop-filter: blur(15px);
  overflow: hidden;
  min-width: 280px;
  max-width: 350px;
}

.minecraft-accounts-card h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
  text-align: center;
}

.minecraft-accounts-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 15px;
  justify-content: center;
}

.minecraft-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
}

.minecraft-account:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
  border-color: var(--accent-color);
}

.minecraft-account .mc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  image-rendering: pixelated;
}

.minecraft-account .mc-username {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95em;
  white-space: nowrap;
}
