/* ============== Variables ============== */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --reviewer: #8b5cf6;
  --reviewer-dark: #7c3aed;
  --designer: #10b981;
  --designer-dark: #059669;
  --dashboard: #f59e0b;
  --dashboard-dark: #d97706;
  --generation: #ec4899;
  --generation-dark: #db2777;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  min-height: 100vh;
  color: var(--gray-100);
}

/* ============== Container ============== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============== Header ============== */
.header {
  text-align: center;
  margin-bottom: 48px;
}

.logo {
  font-size: 64px;
  margin-bottom: 16px;
}

.header h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--gray-100);
  letter-spacing: -1px;
}

.subtitle {
  font-size: 18px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* ============== Main ============== */
.main {
  flex: 1;
}

/* ============== Platforms ============== */
.platforms {
  margin-bottom: 48px;
}

.platforms h2 {
  font-size: 20px;
  color: var(--gray-300);
  margin-bottom: 20px;
  font-weight: 600;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--gray-800);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.platform-card:active {
  transform: translateY(-2px);
}

.platform-card .card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.platform-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Card variants */
.platform-card.reviewer:hover {
  border-color: var(--reviewer);
  background: linear-gradient(135deg, white 0%, #f5f3ff 100%);
}
.platform-card.reviewer:hover h3 {
  color: var(--reviewer-dark);
}

.platform-card.designer:hover {
  border-color: var(--designer);
  background: linear-gradient(135deg, white 0%, #ecfdf5 100%);
}
.platform-card.designer:hover h3 {
  color: var(--designer-dark);
}

.platform-card.dashboard:hover {
  border-color: var(--dashboard);
  background: linear-gradient(135deg, white 0%, #fffbeb 100%);
}
.platform-card.dashboard:hover h3 {
  color: var(--dashboard-dark);
}

.platform-card.generation:hover {
  border-color: var(--generation);
  background: linear-gradient(135deg, white 0%, #fdf2f8 100%);
}
.platform-card.generation:hover h3 {
  color: var(--generation-dark);
}

/* ============== Settings Button ============== */
.settings-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-700);
  border: 2px solid var(--gray-600);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-btn:hover {
  background: var(--gray-600);
  transform: rotate(90deg);
}

/* ============== Password Panel ============== */
.password-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--gray-800);
  border-left: 1px solid var(--gray-700);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.password-panel.active {
  right: 0;
}

.password-panel-content {
  padding: 24px;
}

.password-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-700);
}

.password-panel-header h2 {
  font-size: 20px;
  color: var(--gray-100);
  font-weight: 600;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gray-700);
  border: none;
  color: var(--gray-300);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: var(--gray-600);
  color: white;
}

/* ============== Password Form ============== */
.password-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.password-section h2 {
  font-size: 20px;
  color: var(--gray-700);
  margin-bottom: 24px;
  font-weight: 600;
}

.password-form {
  max-width: 400px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-600);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.15s;
  background: var(--gray-700);
  color: var(--gray-100);
}

.form-group input::placeholder {
  color: var(--gray-500);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #4ade80;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ============== Footer ============== */
.footer {
  text-align: center;
  padding-top: 32px;
  color: var(--gray-500);
  font-size: 14px;
}
.footer .last-updated {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
  opacity: 0.8;
}

/* ============== Responsive ============== */
@media (max-width: 768px) {
  .platform-cards {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 24px 16px;
  }

  .header h1 {
    font-size: 32px;
  }

  .logo {
    font-size: 48px;
  }
}
