/* ============================================
   YYamin Hub Page — Styles
   ============================================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-card: #FFFFFF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --primary: #4F46E5;
  --primary-light: #EEF2FF;
  --accent: #10B981;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 16px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --bg: #0F172A;
  --bg-alt: #1E293B;
  --bg-card: #1E293B;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #334155;
  --primary: #818CF8;
  --primary-light: #1E1B4B;
  --accent: #34D399;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.4);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.theme-toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.main {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  text-align: center;
  margin-bottom: 64px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  color: white;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
  transition: box-shadow var(--transition);
}

.brand h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Projects */
.projects {
  flex: 1;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-logo {
  flex-shrink: 0;
}

.project-logo img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-info h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid transparent;
}

.platform-badge.coming {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-card:hover .project-link {
  gap: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 64px;
  margin-top: auto;
}

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

/* Responsive */
@media (max-width: 480px) {
  .main {
    padding: 60px 16px 32px;
  }
  
  .brand h1 {
    font-size: 2rem;
  }
  
  .project-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  
  .project-logo img {
    width: 48px;
    height: 48px;
  }
}