/* ============================================================
   TeamFlow Wiki — Landing Page Premium CSS Styles
   ============================================================ */

/* CSS Variables for Landing Page */
:root {
  --bg-landing: #0d0e15;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #ec4899;
  --border-glass: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(15, 22, 42, 0.45);
  --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  
  --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-text: 'Inter', -apple-system, sans-serif;
  
  --radius-card: 16px;
  --radius-btn: 10px;
}

[data-theme="light"] {
  --bg-landing: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-primary: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-secondary: #7c3aed;
  --accent-tertiary: #db2777;
  --border-glass: rgba(15, 23, 42, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

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

body {
  background-color: var(--bg-landing);
  color: var(--text-main);
  font-family: var(--font-text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Canvas Interactive Background */
.landing-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Decorative Ambient Floating Orbs */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

[data-theme="light"] .ambient-orb {
  opacity: 0.15;
  mix-blend-mode: multiply;
  filter: blur(100px);
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-primary) 0%, rgba(59, 130, 246, 0) 70%);
  top: -150px;
  left: -150px;
  animation: floatOrb 25s infinite ease-in-out alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(139, 92, 246, 0) 70%);
  bottom: -200px;
  right: -100px;
  animation: floatOrb 30s infinite ease-in-out alternate-reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-tertiary) 0%, rgba(236, 72, 153, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatOrb 20s infinite ease-in-out alternate 3s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 80px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.9); }
}

/* Header Navbar */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 10;
  background: rgba(var(--bg-landing), 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  font-size: 1.5rem;
  animation: logoWobble 4s infinite ease-in-out;
}

@keyframes logoWobble {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg) scale(1.1); }
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Header Buttons styling */
.icon-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.icon-btn:hover {
  transform: scale(1.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

.lang-toggle-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Main Container Layout */
.landing-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 20px 60px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge-wrapper {
  margin-bottom: 5px;
}

.version-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  box-shadow: var(--shadow-premium);
}

.hero-title-shimmer {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerSweep 6s linear infinite;
}

@keyframes shimmerSweep {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-premium);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  animation: gridReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

@keyframes gridReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .hero-title-shimmer {
    font-size: 2.75rem;
  }
}

/* Premium Glassmorphic Cards */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-premium);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  transition: 0.6s;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4), 
              0 0 15px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .glass-card:hover {
  box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.08);
}

.glass-card:hover::before {
  left: 150%;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon {
  font-size: 1.5rem;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Team Grid Styles */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

[data-theme="light"] .team-member {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.team-member:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

[data-theme="light"] .team-member:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.03);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.avatar-purple { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.avatar-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.avatar-green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.avatar-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

.member-detail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.member-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.member-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 2px;
}

/* Guide Steps Styles */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.step-item {
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 12px;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

[data-theme="light"] .step-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 4px 10px var(--accent-glow);
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.step-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sync Configuration Guide Card styling */
.sync-guide-card {
  grid-column: span 2;
}

.sync-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 10px;
}

.sync-step-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px 20px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

[data-theme="light"] .sync-step-item {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.sync-step-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .sync-step-item:hover {
  background: rgba(0, 0, 0, 0.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.sync-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: all 0.3s ease;
}

.sync-step-item:hover .sync-step-badge {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 4px 18px var(--accent-primary);
}

.sync-step-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.sync-step-item:hover .sync-step-info h4 {
  color: var(--accent-primary);
}

.sync-step-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Arrow indicators between steps */
.sync-step-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.3;
  pointer-events: none;
  font-family: monospace;
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .sync-guide-card {
    grid-column: span 1;
  }
  .sync-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sync-step-item:not(:last-child)::after {
    content: '↓';
    right: auto;
    bottom: -16px;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
  }
}

/* Troubleshooting Section */
.troubleshooting-section {
  margin-top: 40px;
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="light"] .accordion-item {
  background: rgba(0, 0, 0, 0.005);
}

.accordion-item.active {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.02);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.03);
}

[data-theme="light"] .accordion-item.active {
  background: rgba(37, 99, 235, 0.01);
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 12px;
  transition: all 0.2s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .accordion-header:hover {
  background: rgba(0, 0, 0, 0.01);
}

.error-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: monospace;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  flex-shrink: 0;
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: monospace;
  font-weight: normal;
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
  padding: 0 20px 20px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.accordion-content p strong {
  color: var(--text-main);
}

.guide-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent-primary);
  transition: all 0.2s ease;
}

.guide-link:hover {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Footer Section */
.landing-footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-glass);
  margin-top: 20px;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.65;
}
