/* ========================================================
   ISKO Official Website - Dark & Red Theme
   ======================================================== */

:root {
  --bg-primary: #070709;
  --bg-secondary: #0e0e13;
  --bg-card: rgba(18, 18, 24, 0.75);
  --bg-card-hover: rgba(26, 26, 36, 0.9);
  
  --red-primary: #ff1a3c;
  --red-secondary: #d60026;
  --red-glow: rgba(255, 26, 60, 0.45);
  --red-subtle: rgba(255, 26, 60, 0.12);
  --red-border: rgba(255, 26, 60, 0.25);
  --red-border-hover: rgba(255, 26, 60, 0.6);

  --text-main: #f5f5f7;
  --text-muted: #9ba1b0;
  --text-dim: #656a7a;

  --yt-color: #ff0033;
  --tg-color: #0088cc;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 40px 16px;
}

/* Background Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.6;
}

.glow-top {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 26, 60, 0.22) 0%, rgba(214, 0, 38, 0.08) 50%, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulseTop 8s ease-in-out infinite alternate;
}

.glow-bottom {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(180, 0, 30, 0.15) 0%, transparent 70%);
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes pulseTop {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 0.75; }
}

/* Floating Particles */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--red-primary);
  border-radius: 50%;
  opacity: 0.3;
  box-shadow: 0 0 8px var(--red-primary);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-5vh) scale(1.2);
    opacity: 0;
  }
}

/* Main Container */
.main-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  background: rgba(14, 14, 18, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 42px 28px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 26, 60, 0.08),
              0 0 40px -10px rgba(255, 26, 60, 0.15);
}

/* Profile Header */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 20px;
}

.avatar-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, var(--red-primary) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.7;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red-primary), #ff6b81, var(--red-secondary), var(--red-primary));
  animation: rotateRing 10s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-inner {
  position: absolute;
  inset: 3px;
  background: #09090d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9);
}

.avatar-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 20%, var(--red-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background-color: #00e676;
  border: 3px solid #09090d;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
}

.name-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  filter: drop-shadow(0 0 6px var(--red-glow));
}

.verified-badge svg {
  width: 22px;
  height: 22px;
}

.profile-handle {
  font-size: 15px;
  font-weight: 600;
  color: var(--red-primary);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
  padding: 3px 12px;
  background: var(--red-subtle);
  border-radius: var(--radius-full);
  border: 1px solid var(--red-border);
}

.profile-bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 22px;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.action-btn:hover {
  background: rgba(255, 26, 60, 0.1);
  color: #ffffff;
  border-color: var(--red-border);
  transform: translateY(-2px);
}

/* Links Section */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-main);
  overflow: hidden;
  transition: var(--transition);
}

.link-card .card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 26, 60, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: var(--bg-card-hover);
  border-color: var(--red-border-hover);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7),
              0 0 24px -4px var(--red-glow);
}

.link-card:hover .card-glow {
  opacity: 1;
}

.link-card:active {
  transform: translateY(-1px) scale(0.99);
}

/* Card Icons */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.yt-card .card-icon {
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.2) 0%, rgba(200, 0, 30, 0.1) 100%);
  color: #ff2a4b;
  border: 1px solid rgba(255, 0, 51, 0.35);
}

.tg-card .card-icon {
  background: linear-gradient(135deg, rgba(36, 161, 222, 0.2) 0%, rgba(0, 136, 204, 0.1) 100%);
  color: #38bdf8;
  border: 1px solid rgba(36, 161, 222, 0.35);
}

.link-card:hover .card-icon {
  transform: scale(1.08) rotate(3deg);
}

.yt-card:hover .card-icon {
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.5);
}

.tg-card:hover .card-icon {
  box-shadow: 0 0 18px rgba(36, 161, 222, 0.5);
}

.fps-card .card-icon {
  background: linear-gradient(135deg, rgba(255, 51, 68, 0.22) 0%, rgba(200, 20, 40, 0.1) 100%);
  color: #ff3b50;
  border: 1px solid rgba(255, 51, 68, 0.35);
}

.fps-card:hover .card-icon {
  box-shadow: 0 0 18px rgba(255, 51, 68, 0.55);
}

.dc-card .card-icon {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22) 0%, rgba(60, 70, 200, 0.1) 100%);
  color: #7289da;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.dc-card:hover .card-icon {
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.55);
}

.partner-card .card-icon {
  background: linear-gradient(135deg, rgba(0, 201, 255, 0.18) 0%, rgba(0, 150, 200, 0.08) 100%);
  color: #00d2ff;
  border: 1px solid rgba(0, 201, 255, 0.3);
}

.partner-card:hover .card-icon {
  box-shadow: 0 0 18px rgba(0, 201, 255, 0.45);
}

/* Category Headers */
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 2px;
  padding-left: 4px;
}

.category-header.mt-lg {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 26, 60, 0.2);
}

.category-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 26, 60, 0.18);
  color: var(--red-primary);
  border: 1px solid rgba(255, 26, 60, 0.35);
}

.badge-partner-title {
  background: rgba(0, 201, 255, 0.14);
  color: #00d2ff;
  border-color: rgba(0, 201, 255, 0.35);
}

.category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Card Content */
.card-content {
  flex-grow: 1;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.badge-yt {
  background: rgba(255, 0, 51, 0.16);
  color: #ff4d6d;
  border: 1px solid rgba(255, 0, 51, 0.3);
}

.badge-fps {
  background: rgba(255, 51, 68, 0.18);
  color: #ff4d6d;
  border: 1px solid rgba(255, 51, 68, 0.35);
}

.badge-dc {
  background: rgba(88, 101, 242, 0.18);
  color: #9aa8f7;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.badge-tg {
  background: rgba(36, 161, 222, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(36, 161, 222, 0.3);
}

.badge-partner {
  background: rgba(0, 201, 255, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(0, 201, 255, 0.3);
}

.card-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.link-card:hover .card-arrow {
  color: var(--red-primary);
  transform: translateX(4px);
}

/* Footer */
.profile-footer {
  text-align: center;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 26, 60, 0.2), transparent);
  margin-bottom: 20px;
}

.copyright {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.copyright strong {
  color: var(--red-primary);
  letter-spacing: 0.5px;
}

.powered-by {
  font-size: 12px;
  color: var(--text-dim);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #14141c;
  color: #ffffff;
  border: 1px solid var(--red-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--red-glow);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--red-primary);
  font-weight: 800;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  body {
    padding: 20px 12px;
  }

  .main-wrapper {
    padding: 30px 18px;
    border-radius: 22px;
  }

  .profile-name {
    font-size: 27px;
  }

  .avatar-container {
    width: 96px;
    height: 96px;
  }

  .avatar-text {
    font-size: 22px;
  }

  .card-icon {
    width: 46px;
    height: 46px;
  }

  .card-icon svg {
    width: 24px;
    height: 24px;
  }

  .link-card {
    padding: 15px 16px;
    gap: 14px;
  }
}
