/* ==========================================
   CLEMTA LINKTREE - STYLES
   ========================================== */

/* CSS Variables - Theme colors */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a86ff;
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

/* Dark Mode (default) */
[data-theme="dark"] {
  --bg-color: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
  --text-secondary: #94a3b8;
  --gradient-opacity: 0.15;
}

/* Light Mode */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.08);
  --text-color: #1e293b;
  --text-secondary: #64748b;
  --gradient-opacity: 0.08;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  line-height: 1.6;
}

/* Container */
.container {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: gradientMove 15s ease-in-out infinite;
}

@keyframes gradientMove {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(2%, 2%) rotate(1deg);
  }
  50% {
    transform: translate(-1%, 3%) rotate(-1deg);
  }
  75% {
    transform: translate(3%, -2%) rotate(1deg);
  }
}

/* Main Content */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Profile Section */
.profile {
  text-align: center;
  margin-bottom: 40px;
}

.logo-wrapper {
  margin-bottom: 20px;
}

.logo {
  width: 200px;
  height: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* Social Links Section */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Main Links Section */
.main-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.link-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

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

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.link-card:hover .link-icon {
  background: rgba(255, 255, 255, 0.2);
}

.link-content {
  flex: 1;
}

.link-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  transition: var(--transition);
}

.link-card:hover .link-title {
  color: #ffffff;
}

.link-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.link-card:hover .link-description {
  color: rgba(255, 255, 255, 0.8);
}

.link-arrow {
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile {
  animation: fadeInUp 0.6s ease-out;
}

.social-links {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.link-card {
  animation: fadeInUp 0.6s ease-out both;
}

/* Staggered animation for link cards */
.link-card:nth-child(1) { animation-delay: 0.2s; }
.link-card:nth-child(2) { animation-delay: 0.25s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.35s; }
.link-card:nth-child(5) { animation-delay: 0.4s; }
.link-card:nth-child(6) { animation-delay: 0.45s; }
.link-card:nth-child(7) { animation-delay: 0.5s; }
.link-card:nth-child(8) { animation-delay: 0.55s; }
.link-card:nth-child(9) { animation-delay: 0.6s; }
.link-card:nth-child(10) { animation-delay: 0.65s; }

/* Responsive Design */
@media (max-width: 480px) {
  .content {
    padding: 32px 16px;
  }

  .logo {
    width: 160px;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-description {
    font-size: 0.9rem;
  }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

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

  .link-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .link-title {
    font-size: 0.95rem;
  }

  .link-description {
    font-size: 0.8rem;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.theme-toggle:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  transform: scale(1.1);
}

[data-theme="light"] .theme-toggle {
  transform: rotate(180deg);
}

[data-theme="light"] .theme-toggle:hover {
  transform: rotate(180deg) scale(1.1);
}

/* Hover effects disabled for touch devices */
@media (hover: none) {
  .link-card:hover {
    transform: none;
    box-shadow: none;
  }

  .link-card:active {
    transform: scale(0.98);
  }

  .social-link:hover {
    transform: none;
  }

  .social-link:active {
    transform: scale(0.95);
  }
}
