/* ============================================
   Samsun Lojistik Merkezi - Main Stylesheet
   Mobile-First Responsive Design
   Core Web Vitals Optimized
   ============================================ */

/* CSS Custom Properties */
:root {
  --primary: #1a2a4a;
  --primary-light: #2c3e6b;
  --secondary: #27ae60;
  --secondary-dark: #219a52;
  --accent: #e67e22;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #1a2a4a;
  --border: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 6px;
  --max-width: 1200px;
  --header-height: 80px;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul { list-style: none; }

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: #ccc;
  font-size: 0.85rem;
}

.top-bar a:hover { color: #fff; }

.top-bar-contact {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 12px;
}

/* ---- HEADER / NAV ---- */
.header {
  background: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  min-height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Navigation */
.nav { display: flex; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 28px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s, background 0.3s;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--secondary);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--bg-light);
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--secondary);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--secondary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(39,174,96,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* ---- FEATURES ---- */
.features {
  padding: 60px 16px;
  background: var(--bg-light);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- QUICK LINKS GRID ---- */
.quick-links {
  padding: 60px 16px;
}

.quick-links-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.quick-card {
  background: var(--primary);
  color: #fff;
  padding: 32px 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.quick-card:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  color: #fff;
}

.quick-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.quick-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* ---- NEWS SECTION ---- */
.news-section {
  padding: 60px 16px;
  background: var(--bg-light);
}

.news-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.news-inner h2,
.services-inner h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 32px;
}

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

.news-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-card-img {
  width: 100%;
  height: 200px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

.news-card-body {
  padding: 20px;
}

.news-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.news-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- SERVICES SECTION ---- */
.services-section {
  padding: 60px 16px;
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 24px;
  border-left: 4px solid var(--secondary);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 48px 16px;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a { color: #fff; opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }

/* ---- PAGE CONTENT ---- */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 16px;
}

.page-content h2 {
  color: var(--primary);
  margin: 32px 0 16px;
  font-size: 1.5rem;
}

.page-content h3 {
  color: var(--primary);
  margin: 24px 0 12px;
  font-size: 1.25rem;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}

.page-content ul {
  margin: 16px 0;
  padding-left: 24px;
  list-style: disc;
}

.page-content ul li {
  margin-bottom: 8px;
  color: var(--text);
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contact-info-card {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
}

.contact-info-card h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.contact-item .icon {
  min-width: 24px;
  color: var(--secondary);
  font-size: 1.1rem;
}

.contact-form {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  min-height: 44px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 48px 16px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer a {
  color: #aaa;
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer a:hover { color: var(--secondary); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
  padding: 0;
}

.social-links a:hover {
  background: var(--secondary);
  color: #fff;
}

/* ---- TABLE ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.data-table tr:hover {
  background: var(--bg-light);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--bg);
    flex-direction: column;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav.active { left: 0; }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-list > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--bg-light);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background: var(--bg-light);
  }

  .dropdown.active { display: block; }

  .hero { padding: 48px 16px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }

  .top-bar-contact { display: none; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- PRINT ---- */
@media print {
  .header, .top-bar, .footer, .nav-toggle { display: none; }
  .page-content { padding: 0; }
  body { color: #000; }
}
