/**
 * NeckToChoke Styles
 *
 * Visual inspiration: threejs.paris
 * Bold, minimal, typographic, slightly absurd, confident.
 * Dark background, large stark typography, unexpected humor.
 * Feels handmade and opinionated, not corporate SaaS.
 */

/* ===================================
   Global Styles & Reset
   =================================== */

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

body {
  background-color: #0a0a0a;
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 2rem 1rem;
}

/* ===================================
   Container
   =================================== */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===================================
   Header: Brand and Tagline
   =================================== */

.header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.brand {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
}

.tagline {
  font-size: 1.3rem;
  font-weight: 300;
  color: #b0b0b0;
  margin-top: 1rem;
  font-style: italic;
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 3rem;
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 3rem;
  font-weight: 300;
  color: #666;
  display: inline-block;
  line-height: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  40% {
    transform: translateY(10px);
    opacity: 1;
  }
  60% {
    transform: translateY(5px);
    opacity: 0.8;
  }
}

/* Hide scroll indicator after user interaction */
.scroll-indicator.hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ===================================
   Main Content
   =================================== */

.main-content {
  margin-bottom: 4rem;
}

/* Instructions */
.instructions {
  text-align: center;
  margin-bottom: 3rem;
}

.question {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

/* ===================================
   Option Cards
   =================================== */

.options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.option-card {
  width: 100%;
}

.option-button {
  width: 100%;
  background-color: transparent;
  border: 2px solid #444;
  color: #f0f0f0;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 2rem 2.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  position: relative;
}

.option-button:hover {
  background-color: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  transform: translateX(8px);
}

.option-button:active {
  transform: translateX(8px) scale(0.98);
}

/* Slightly absurd hover effect - subtle shift */
.option-button::before {
  content: '→';
  position: absolute;
  left: -30px;
  opacity: 0;
  transition: all 0.2s ease;
}

.option-button:hover::before {
  opacity: 1;
  left: 1rem;
}

/* ===================================
   Input Section (Hidden by default)
   =================================== */

.input-section {
  display: none;
  text-align: center;
  margin-top: 3rem;
  animation: fadeIn 0.4s ease;
}

.input-section.active {
  display: block;
}

.input-prompt {
  font-size: 1.5rem;
  font-weight: 500;
  color: #d0d0d0;
  margin-bottom: 2rem;
}

/* Input field wrapper */
.input-group-wrapper {
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.input-field {
  background-color: #1a1a1a;
  border: 2px solid #444;
  color: #f0f0f0;
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  background-color: #1a1a1a;
  border-color: #ffffff;
  color: #f0f0f0;
  box-shadow: none;
  outline: none;
}

.input-field::placeholder {
  color: #666;
}

/* URL error message */
.url-error {
  display: none;
  color: #ff4444;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #1a1a1a;
  border-left: 3px solid #ff4444;
}

.url-error.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Scan button */
.scan-button {
  background-color: #ffffff;
  color: #0a0a0a;
  border: 2px solid #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.scan-button:hover:not(:disabled) {
  background-color: transparent;
  color: #ffffff;
  transform: scale(1.05);
}

.scan-button:active:not(:disabled) {
  transform: scale(0.98);
}

.scan-button:disabled {
  background-color: #333;
  color: #666;
  border-color: #333;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Loading message (hidden by default) */
.loading-message {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  background-color: #1a1a1a;
  border: 2px solid #444;
  animation: fadeIn 0.4s ease;
}

.loading-message.active {
  display: block;
}

.loading-message p {
  font-size: 1.3rem;
  font-weight: 500;
  color: #b0b0b0;
  margin: 0;
}

/* Results section (hidden by default) */
.results-section {
  display: none;
  margin-top: 3rem;
  text-align: left;
  animation: fadeIn 0.4s ease;
}

.results-section.active {
  display: block;
}

.results-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

.vulnerability {
  background-color: #1a1a1a;
  border-left: 4px solid #ff4444;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.vulnerability.warning {
  border-left-color: #ffaa00;
}

.vulnerability.info {
  border-left-color: #4444ff;
}

.vulnerability.success {
  border-left-color: #44ff44;
}

.vulnerability h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.vulnerability p {
  font-size: 1rem;
  color: #b0b0b0;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.vulnerability code {
  background-color: #0a0a0a;
  color: #ff6b6b;
  padding: 0.2rem 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.summary {
  background-color: #1a1a1a;
  border: 2px solid #444;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.summary h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.summary .score {
  font-size: 3rem;
  font-weight: 900;
  margin: 1rem 0;
}

.summary .score.danger {
  color: #ff4444;
}

.summary .score.warning {
  color: #ffaa00;
}

.summary .score.good {
  color: #44ff44;
}

/* ===================================
   Action Buttons
   =================================== */

.action-buttons {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #1a1a1a;
  border: 2px solid #444;
  text-align: center;
}

.action-buttons h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.action-button {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  text-transform: none;
}

.action-button:hover {
  background-color: #ffffff;
  color: #0a0a0a;
  transform: translateX(8px);
}

.action-button:active {
  transform: translateX(8px) scale(0.98);
}

.fix-button {
  border-color: #ffaa00;
  color: #ffaa00;
}

.fix-button:hover {
  background-color: #ffaa00;
  color: #0a0a0a;
}

/* ===================================
   Footer
   =================================== */

.footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid #222;
}

.footer p {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* ===================================
   Animations
   =================================== */

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

/* ===================================
   Responsive Design
   =================================== */

/* Tablet and below */
@media (max-width: 768px) {
  .brand {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .scroll-indicator span {
    font-size: 2.5rem;
  }

  .question {
    font-size: 2rem;
  }

  .option-button {
    font-size: 1.2rem;
    padding: 1.5rem 2rem;
  }

  .option-button::before {
    left: -20px;
  }

  .option-button:hover::before {
    left: 0.75rem;
  }

  .input-prompt {
    font-size: 1.2rem;
  }

  .input-field {
    font-size: 1rem;
  }

  .scan-button {
    font-size: 1.2rem;
    padding: 0.9rem 2.5rem;
  }

  .loading-message p {
    font-size: 1.1rem;
  }

  .results-title {
    font-size: 1.5rem;
  }

  .vulnerability h4 {
    font-size: 1.1rem;
  }

  .summary .score {
    font-size: 2.5rem;
  }

  .action-button {
    font-size: 1.1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }

  .brand {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .scroll-indicator span {
    font-size: 2rem;
  }

  .question {
    font-size: 1.5rem;
  }

  .option-button {
    font-size: 1rem;
    padding: 1.2rem 1.5rem;
    transform: none;
  }

  .option-button:hover {
    transform: none;
  }

  .option-button::before {
    display: none;
  }

  .input-prompt {
    font-size: 1rem;
  }

  .input-field {
    font-size: 0.95rem;
    padding: 0.9rem 1.2rem;
  }

  .scan-button {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  .loading-message p {
    font-size: 1rem;
  }

  .results-title {
    font-size: 1.3rem;
  }

  .vulnerability {
    padding: 1rem;
  }

  .vulnerability h4 {
    font-size: 1rem;
  }

  .summary .score {
    font-size: 2rem;
  }

  .action-button {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .action-button:hover {
    transform: none;
  }

  .button-group {
    gap: 0.75rem;
  }
}
