/* public/css/style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: white;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.lang-switcher button {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.2s;
}

.lang-switcher button.active {
  background: white;
  color: #1a56db;
}

.hero {
  text-align: center;
  padding: 60px 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.2rem;
  color: #475569;
}

.btn-primary {
  background: #1a56db;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1e40af;
}

.itr-selector {
  padding: 40px 0;
}

.itr-selector h3 {
  text-align: center;
  margin-bottom: 24px;
}

.itr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.itr-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.itr-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.itr-card h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.itr-card p {
  color: #64748b;
  font-size: 0.9rem;
}

.clause-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.clause-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.clause-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.clause-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.clause-card p {
  color: #64748b;
  font-size: 0.85rem;
}

.clause-card small {
  color: #94a3b8;
  font-size: 0.8rem;
}

#detail-section {
  padding: 40px 0;
}

#detail-section h2 {
  margin-bottom: 12px;
}

#detail-section p {
  margin-bottom: 8px;
}

.back-btn {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 4px 0;
}

.back-btn:hover {
  text-decoration: underline;
}

.loading, .error, .empty {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

.error {
  color: #ef4444;
}

footer {
  text-align: center;
  padding: 24px 0;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}

.meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  header h1 { font-size: 1.2rem; }
  .hero h2 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .itr-grid { grid-template-columns: 1fr 1fr; }
}