/*
Theme Name: Carhunch
Theme URI: https://www.carhunch.com
Author: You
Description: Minimal theme for vehicle lookup app
Version: 1.0
*/

body {
  background: #f0f4f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  background-color: #fff;
  text-align: center;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.logo-container img {
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  border: 2px solid #506477;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

label {
  font-weight: 600;
  color: #34495e;
}

input[type="text"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #506477;
  border-radius: 6px;
  outline-offset: 2px;
  transition: border-color 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input[type="text"]:focus {
  border-color: #506477;
  box-shadow: 0 0 8px rgba(80, 100, 119, 0.3);
}

button {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  background-color: #506477;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background-color 0.25s ease;
  position: relative;
}

button:hover {
  background-color: #3d4f5a;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(80, 100, 119, 0.1);
  color: #506477;
  border: 1px solid #506477;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.message {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #fdecea;
  color: #c0392b;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  font-weight: 600;
}

.vehicle-results {
  margin-top: 2rem;
  text-align: left;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.vehicle-header {
  border-bottom: 2px solid #506477;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.vehicle-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.vehicle-reg {
  font-size: 1.2rem;
  color: #7f8c8d;
  margin: 0.5rem 0 0 0;
}

.vehicle-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
  .vehicle-details {
    grid-template-columns: 1fr;
  }
}

.detail-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #506477;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.detail-label {
  font-weight: 600;
  color: #34495e;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.detail-value {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Tax Status Styles */
.tax-status {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
}

/* Green - Vehicle is currently taxed */
.tax-status.taxed {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Amber - SORN (legal but not roadworthy) */
.tax-status.sorn {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Red - Untaxed/Expired (illegal for road use) */
.tax-status.untaxed,
.tax-status.not.taxed,
.tax-status.expired {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Tab Navigation Styles */
.tab-container {
  margin-top: 2rem;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 0;
  gap: 0;
}

.tab-button {
  background: #506477;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px 6px 0 0;
  margin-right: 4px;
}

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

.tab-button.active {
  background-color: #2a3439;
  border-bottom-color: #2a3439;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-content {
  display: none;
  padding: 2rem 0;
}

.tab-content.active {
  display: block;
}

.mot-tests {
  margin-top: 0;
}

.coming-soon {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.coming-soon h3 {
  color: #495057;
  margin-bottom: 1rem;
}

.coming-soon p {
  margin: 0.5rem 0;
}

.mot-tests h3 {
  color: #2c3e50;
  border-bottom: 1px solid #bdc3c7;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mot-test {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #27ae60;
}

.mot-test.fail {
  border-left-color: #e74c3c;
}

.mot-test.minor {
  border-left-color: #f39c12;
}

.mot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.test-result {
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.test-result.pass {
  background: #d5f4e6;
  color: #27ae60;
}

.test-result.fail {
  background: #fadbd8;
  color: #e74c3c;
}

.test-result.minor {
  background: #fef9e7;
  color: #f39c12;
}

.test-date {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.test-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.defects {
  margin-top: 1rem;
}

.defects h4 {
  margin: 0 0 0.75rem 0;
  color: #34495e;
  font-size: 1rem;
}

.defect {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border-left: 3px solid #95a5a6;
}

.defect.dangerous {
  border-left-color: #e74c3c;
  background: #fdf2f2;
}

.defect-type {
  font-weight: 600;
  color: #e74c3c;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.defect-text {
  color: #2c3e50;
  line-height: 1.4;
}

.no-defects {
  color: #27ae60;
  font-style: italic;
  padding: 0.5rem;
  background: #d5f4e6;
  border-radius: 4px;
}

/* Vehicle Image Styles */
.vehicle-image-container {
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vehicle-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vehicle-image-placeholder {
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #6c757d;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.placeholder-text {
  font-size: 1.1rem;
  color: #6c757d;
} 