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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

/* Search Section */
.search-section {
  margin-bottom: 30px;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.search-container input {
  flex: 1;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: border-color 0.3s;
}

.search-container input:focus {
  border-color: #3498db;
}

.search-container button {
  padding: 12px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.search-container button:hover {
  background-color: #2980b9;
}

/* Error Message */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

/* Verb Info */
.verb-info {
  text-align: center;
  margin-bottom: 20px;
}

.verb-info h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.highlight {
  color: #3498db;
  font-weight: 700;
}

.group {
  font-weight: 600;
  color: #e74c3c;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 5px;
}

.tab-button {
  padding: 10px 20px;
  background-color: #ecf0f1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-button:hover {
  background-color: #d5dbdb;
}

.tab-button.active {
  background-color: #3498db;
  color: white;
}

/* Tab Content */
.tab-content {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* Tense Container */
.tense-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.tense-block {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
  border-left: 4px solid #3498db;
}

.tense-block h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
  text-align: center;
}

.tense-block ul {
  list-style: none;
}

.tense-block li {
  padding: 5px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.95rem;
}

.tense-block li:last-child {
  border-bottom: none;
}

.person {
  font-weight: 600;
  color: #7f8c8d;
  display: inline-block;
  width: 80px;
}

/* Info Section */
.info-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.info-section h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.info-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.info-section ul {
  padding-left: 20px;
}

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

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #7f8c8d;
  font-size: 0.9rem;
}

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

  header h1 {
    font-size: 2rem;
  }

  .search-container {
    flex-direction: column;
  }

  .search-container input {
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .search-container button {
    border-radius: 4px;
  }

  .tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 200px;
    margin-bottom: 5px;
  }

  .tense-container {
    grid-template-columns: 1fr;
  }

  .person {
    width: 70px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  .tab-button {
    width: 100%;
    font-size: 0.8rem;
    padding: 8px 15px;
  }

  .tense-block {
    padding: 12px;
  }

  .person {
    width: 60px;
    font-size: 0.85rem;
  }

  .tense-block li {
    font-size: 0.9rem;
  }
}

/* Animation */
.tab-content {
  animation: fadeIn 0.3s ease-in;
}

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

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Hover effects */
.tense-block:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
