/* KKTC Ehliyet Rehberi - Government Style Design */

:root {
  --navy: #1a2332;
  --navy-dark: #0f1419;
  --navy-light: #2a3544;
  --yellow: #fbbf24;
  --yellow-light: #fcd34d;
  --yellow-dark: #f59e0b;
  --yellow-accent: #fbbf24;
  --gray: #6b7280;
  --gray-light: #f9fafb;
  --gray-dark: #374151;
  --white: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

a {
  color: var(--navy);
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover {
  color: var(--yellow-dark);
}

a:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--navy);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--yellow);
}

.nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--yellow);
  text-decoration: none;
}

.nav a:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-switcher a {
  color: var(--white);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.875rem;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background-color: var(--navy-light);
  border-color: var(--yellow);
  text-decoration: none;
}

/* Main Content */
.main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px var(--shadow);
}

.card h2 {
  color: var(--navy);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 0.5rem;
}

.card h3 {
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* License Cards */
.license-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.license-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px var(--shadow);
  border-color: var(--yellow);
  text-decoration: none;
}

.license-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.license-code {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.license-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Lists */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-light);
  padding: 1rem 0;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 0.5rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  color: var(--navy);
  padding: 3rem 0;
  margin: 3rem 0;
  border-radius: 8px;
  text-align: center;
}

.cta h2 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--navy-dark);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.cta a {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
  margin: 0.5rem;
}

.cta a:hover {
  background: var(--navy-dark);
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  color: var(--yellow);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* WhatsApp CTA */
.whatsapp-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: var(--white);
}

.whatsapp-cta::before {
  content: "💬";
  font-size: 1.25rem;
}

/* Disclaimer */
.disclaimer {
  background: var(--gray-light);
  border-left: 4px solid var(--yellow);
  padding: 1rem;
  margin: 2rem 0;
  font-size: 0.875rem;
  color: var(--text-light);
  border-radius: 4px;
}

/* Backlink CTA */
.backlink-cta {
  background: var(--gray-light);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
}

.backlink-cta p {
  margin-bottom: 1rem;
}

.backlink-cta a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.backlink-cta a:hover {
  color: var(--yellow-dark);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .card {
    padding: 1.5rem;
  }

  .whatsapp-cta {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

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

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .whatsapp-cta {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 1rem auto;
    width: fit-content;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .whatsapp-cta,
  .cta {
    display: none;
  }

  .main {
    padding: 0;
  }

  a {
    color: var(--text);
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--text-light);
  }
}
