/* PingLater Guide Page Styles */
/* Design System: WhereCheaper Luxury Dark Theme */

:root {
  --bg-primary: #1A1F1C;
  --bg-secondary: #252A27;
  --bg-card: #2A2F2C;
  --bg-hover: #323836;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #888888;
  --accent: #4ADE80;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --accent-glow: rgba(74, 222, 128, 0.3);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
}

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

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

/* Grid Pattern Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 1;
}

.logo-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: var(--bg-card);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.logo-icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
}

.logo-text {
  font-family: 'Archivo', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

/* Sections */
.section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.section-icon svg {
  width: 100%;
  height: 100%;
}

.section-header h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  font-weight: 600;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-glow);
}

.card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card), rgba(74, 222, 128, 0.08));
}

.card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modes Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.mode-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-icon.close {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.mode-icon.keep {
  background: var(--accent-dim);
  color: var(--accent);
}

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

.mode-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mode-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-text strong {
  font-size: 14px;
  font-weight: 600;
}

.feature-text span {
  font-size: 13px;
  color: var(--text-muted);
}

.feature-text kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-card);
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  border: 1px solid var(--border);
}

/* Tips Section */
.tips-section {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius);
  max-width: 860px;
  border: 1px solid var(--border);
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tip-number {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.tip p {
  font-size: 15px;
  color: var(--text-secondary);
  padding-top: 3px;
}

/* Troubleshooting Section */
.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.troubleshoot-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.os-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.os-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-icon svg {
  width: 22px;
  height: 22px;
}

.os-icon.macos {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.os-icon.windows {
  background: rgba(0, 120, 212, 0.2);
  color: #0078D4;
}

.os-header h4 {
  font-size: 18px;
  font-weight: 600;
}

.troubleshoot-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.troubleshoot-steps {
  list-style: none;
  counter-reset: step;
}

.troubleshoot-steps li {
  position: relative;
  padding-left: 32px;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  counter-increment: step;
}

.troubleshoot-steps li:last-child {
  padding-bottom: 0;
}

.troubleshoot-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--bg-hover);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.troubleshoot-steps li strong {
  color: var(--text-primary);
}

.troubleshoot-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.note-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.note-icon svg {
  width: 100%;
  height: 100%;
}

.troubleshoot-note p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Feedback Section */
.feedback-section {
  padding-top: 20px;
}

.feedback-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.feedback-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--accent) 60deg,
    transparent 120deg,
    transparent 180deg,
    var(--accent) 240deg,
    transparent 300deg,
    transparent 360deg
  );
  opacity: 0.15;
  animation: rotate-glow 8s linear infinite;
}

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

.feedback-content {
  position: relative;
  z-index: 1;
  padding: 50px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(26, 31, 28, 0.95) 100%);
}

.feedback-emoji {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(74, 222, 128, 0.3));
}

.feedback-card h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.feedback-main {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feedback-main strong {
  color: var(--accent);
  font-weight: 600;
}

.feedback-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.feedback-divider::before,
.feedback-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.feedback-divider span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.feedback-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feedback-btn-bg {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.feedback-btn:hover {
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.feedback-btn:hover .feedback-btn-bg {
  transform: scaleX(1);
}

.feedback-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.feedback-btn:hover svg {
  transform: scale(1.1);
}

.feedback-handle {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-subtle);
  font-family: 'SF Mono', 'Monaco', monospace;
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.footer .heart {
  color: #EF4444;
}

.footer p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .version {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .cards-grid,
  .modes-grid,
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .tips-section {
    padding: 24px;
    margin-left: 20px;
    margin-right: 20px;
  }
}

