/* Simple, modern, user-friendly CSS for SarkariGulf.com */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --background: #fff;
  --text: #222;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary-hover);
}
.menu-toggle {
  display: none;
}

header.hero {
  padding: 2.5rem 1rem 1.5rem 1rem;
  text-align: center;
  background: #f1f5f9;
}
header.hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
}
.cta {
  margin-top: 1.5rem;
}
.cta-btn, button, input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cta-btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--primary-hover);
}

main {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.section {
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
}
.section h2 {
  margin-top: 0;
  font-size: 1.5rem;
}
ul, ol {
  padding-left: 1.5rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: #666;
}
footer a {
  color: var(--primary);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Dropzone styles */
.neon-dropzone-wrap {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.neon-dropzone {
  background: #f1f5f9;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.neon-dropzone.dragover {
  border-color: var(--primary);
}
.dropzone-label {
  text-align: center;
  color: #888;
  font-size: 1rem;
}
.preview-canvas {
  display: none;
  margin-top: 0.5rem;
  max-width: 100%;
  max-height: 120px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.neon-dropzone.has-image .preview-canvas {
  display: block;
}

#compareBtn[disabled] {
  background: #cbd5e1;
  color: #fff;
  cursor: not-allowed;
}

.result-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f1f5f9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.result-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.confidence-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.confidence-bar {
  background: #e5e7eb;
  border-radius: 6px;
  height: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.confidence-fill {
  background: var(--primary);
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s;
}
.result-message.negative {
  color: #dc2626;
}

.loading-bar {
  margin: 1rem auto;
  width: 80px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.loading-bar::after {
  content: '';
  display: block;
  width: 40px;
  height: 8px;
  background: var(--primary);
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0;
  animation: loading 1s infinite linear;
}
@keyframes loading {
  0% { left: 0; }
  100% { left: 40px; }
}

/* FAQ styles */
.faq {
  margin-top: 1rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-question {
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  color: #444;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Responsive */
@media (max-width: 800px) {
  main {
    max-width: 98vw;
  }
  .neon-dropzone-wrap {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    position: relative;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-bottom: 0.5rem;
  }
  .menu-toggle .bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px 0;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
  }
  .menu-toggle.open .bar1 {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open .bar2 {
    opacity: 0;
  }
  .menu-toggle.open .bar3 {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    position: absolute;
    top: 56px;
    left: 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1rem 0.5rem;
    display: none;
    transition: max-height 0.3s ease;
    z-index: 1000;
  }
  .nav-links.open {
    display: flex;
  }
  header.hero {
    padding: 1.5rem 0.5rem;
  }
  .section {
    padding: 1rem 0.5rem;
  }
} 