/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

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

.header h1 {
  font-size: 2.5em;
  color: #667eea;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2em;
  color: #666;
}

/* Search Form */
.search-form {
  margin-bottom: 40px;
}

.input-group {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.keyword-input {
  flex: 1;
  padding: 15px 20px;
  font-size: 1.1em;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.keyword-input:focus {
  outline: none;
  border-color: #667eea;
}

.search-button {
  padding: 15px 30px;
  font-size: 1.1em;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
}

.search-button:hover {
  background: #5568d3;
}

/* Examples */
.examples {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.examples-title {
  margin-bottom: 15px;
  color: #666;
  font-weight: 600;
}

.example-keywords {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.inline-form {
  display: inline;
}

.example-link {
  padding: 8px 16px;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 20px;
  border: 2px solid #667eea;
  transition: all 0.3s;
  font-weight: 500;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.example-link:hover {
  background: #667eea;
  color: white;
}

/* Info Section */
.info {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
}

.info h2 {
  margin-bottom: 15px;
  color: #333;
}

.info ul {
  list-style-position: inside;
  color: #666;
}

.info li {
  margin-bottom: 8px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #667eea;
}

.stat-label {
  color: #666;
  margin-top: 5px;
}

/* Results Section */
.results-section {
  margin-bottom: 40px;
}

.results-section h2 {
  margin-bottom: 20px;
  color: #333;
}

.tld-section {
  margin-bottom: 30px;
}

.tld-section h3 {
  margin-bottom: 15px;
  color: #667eea;
  font-size: 1.3em;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.domain-card {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
}

.domain-card.available {
  border-color: #4caf50;
  background: #f1f8f4;
}

.domain-card.taken {
  border-color: #f44336;
  background: #fff5f5;
}

.domain-name {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #333;
}

.domain-status {
  font-size: 0.9em;
  font-weight: 600;
}

.available-badge {
  color: #4caf50;
}

.taken-badge {
  color: #f44336;
}

.new-search-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.new-search-link:hover {
  background: #5568d3;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .header h1 {
    font-size: 2em;
  }

  .input-group {
    flex-direction: column;
  }

  .domains-grid {
    grid-template-columns: 1fr;
  }
}
