/* Modern styling for YouTube search page */

/* Base styles and typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f9f9f9;
  color: #333;
}

/* Container for better centering */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Header styling */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff0000;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Search form styling */
input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Search button styling */
button {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: #ff0000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #cc0000;
}

button:active {
  transform: translateY(1px);
}

/* Version number styling */
.version {
  margin-top: 1rem;
  color: #666;
  font-size: 0.875rem;
  text-align: center;
}

/* Responsive design */
@media (min-width: 640px) {
  .search-container {
    display: flex;
    gap: 1rem;
  }
  
  input[type="text"] {
    margin-bottom: 0;
  }
  
  button {
    width: auto;
    min-width: 120px;
  }
}

/* Animation for focus states */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Accessibility improvements */
:focus {
  outline: 3px solid #ff0000;
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #ffffff;
  }
  
  input[type="text"] {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
  }
  
  .version {
    color: #999;
  }
}
