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

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f0f0;
  color: #263238;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1288px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: #1677FF;
  border-radius: 6px;
  transition: transform 0.5s;
}

.logo-icon:hover {
  transform: rotate(180deg) scale(1.25);
}

.logo-text {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Nunito Sans', sans-serif;
  margin: 0;
}

.nav-menu {
  display: flex;
  height: 100%;
  gap: 20px;
}

.nav-item {
  position: relative;
  display: grid;
  align-items: center;
  padding: 0 12px;
  height: 100%;
  text-decoration: none;
  color: #263238;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
}

.nav-item p {
  margin: 0;
}

.nav-item:hover {
  color: #007AFF;
  border-bottom-color: #007AFF;
}

.nav-item.active {
  color: #007AFF;
  border-bottom-color: #007AFF;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-btn, .hero-login-btn {
  width: 100px;
  height: 32px;
  background: #1677FF;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.login-btn:hover, .hero-login-btn:hover {
  background: #0958D9;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.globe-icon {
  opacity: 0.45;
  color: #263238;
}

.lang-dropdown {
  width: 75px;
  height: 28px;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.65;
  cursor: pointer;
  outline: none;
}

/* Main Content */
.main-content {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 228px);
}

.content-wrapper {
  width: 100%;
  max-width: 1288px;
  padding: 60px 20px 20px;
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  min-height: 500px;
  margin-bottom: 80px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 608px;
  gap: 30px;
  padding-top: 40px;
}

.hero-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 40px;
  line-height: 54px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
}

.hero-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-login-btn {
  width: 100px;
  height: 40px;
}

.search-group {
  display: flex;
  height: 40px;
  gap: 8px;
}

.search-input {
  width: 280px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #1677FF;
}

.search-btn {
  width: 160px;
  height: 40px;
  background: #1677FF;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #0958D9;
}

/* Info Cards Section */
.info-cards {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(22, 119, 255, 0.15);
}

.info-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.info-card-title {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #263238;
}

.info-card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #78716c;
  margin: 0;
  line-height: 1.6;
}

/* Hero Illustration */
.hero-illustration {
  width: 464px;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  max-height: 400px;
}

/* Results Section */
.results-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.result-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  border-left: 4px solid #1677FF;
}

.result-card.success {
  border-left-color: #00D27E;
  background: #f0fdf4;
}

.result-card.error {
  border-left-color: #FD504E;
  background: #fef2f2;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.result-status {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.result-status.valid {
  background: #E6F4FF;
  color: #0958D9;
}

.result-status.invalid {
  background: #FFBAB3;
  color: #FD504E;
}

.result-details {
  display: grid;
  gap: 12px;
}

.result-item {
  display: flex;
  gap: 8px;
}

.result-item strong {
  color: #57534e;
  min-width: 180px;
}

.result-item span {
  color: #263238;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #78716c;
}

/* Footer */
.footer {
  background: #263238;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-container {
  max-width: 1288px;
  margin: 0 auto;
}

.footer-text {
  font-size: 14px;
  opacity: 0.8;
  margin: 0 0 16px 0;
  font-style: italic;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-section {
    flex-direction: column;
    height: auto;
  }

  .hero-content {
    width: 100%;
  }

  .hero-illustration {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 28px;
    line-height: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search-group {
    flex-direction: column;
    height: auto;
  }

  .search-input {
    width: 100%;
  }

  .search-btn {
    width: 100%;
  }

  .info-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
    line-height: 32px;
  }

  .info-card-icon {
    font-size: 36px;
  }

  .info-card-title {
    font-size: 16px;
  }

  .info-card-desc {
    font-size: 13px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section,
.info-cards {
  animation: fadeIn 0.6s ease-out;
}
