/* ===========================
   Global Styles & Variables
   =========================== */
:root {
  --primary-navy: #1a2b4a;
  --primary-green: #28a745;
  --accent-green: #20c997;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --white: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dark-gray);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--light-gray);
  padding: 10px 0;
}

.ad-space {
  background-color: var(--border-color);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ad-space:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ad-space img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.ad-space:hover img {
  transform: scale(1.1);
}

.ad-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ad-space:hover .ad-overlay {
  opacity: 1;
}

.ad-title {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Önizleme modal stilleri */
.image-preview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.image-preview-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-preview-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.image-preview-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.image-preview-close:hover {
  color: #000;
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-green);
}

.nav-link:hover::after {
  width: 100%;
}

.login-btn {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
}

.login-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
  }

  .nav-menu-overlay.active {
    display: block;
  }
}

/* ===========================
   Hero Search Section
   =========================== */
.hero-search {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #2c4a7c 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.hero-title {
  color: var(--white);
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.search-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.autocomplete-suggestion {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  font-size: 1rem;
  color: var(--dark-gray);
}

.autocomplete-suggestion:last-child {
  border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.highlighted {
  background-color: var(--light-gray);
  color: var(--primary-green);
}

.autocomplete-suggestion:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.autocomplete-suggestion:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.autocomplete-no-results {
  padding: 12px 20px;
  color: var(--medium-gray);
  font-style: italic;
  text-align: center;
}

.search-input {
  width: 100%;
  padding: 1rem 5rem 1rem 1.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background-color: #218838;
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .search-input {
    font-size: 1rem;
    padding: 0.875rem 4.5rem 0.875rem 1.25rem;
  }

  .search-btn {
    width: 45px;
    height: 45px;
  }
}

/* ===========================
   Home Content Section
   =========================== */
.home-content {
  padding: 2rem 0 4rem;
}

.info-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-card-title {
  color: var(--primary-navy);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-green);
}

.word-highlight {
  color: var(--primary-green);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.word-definition {
  color: var(--medium-gray);
  line-height: 1.6;
  margin: 0;
}

/* Daily Words Section */
.daily-words-section {
  margin-top: 4rem;
}

.section-title {
  color: var(--primary-navy);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.daily-word-link {
  display: block;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid transparent;
}

.daily-word-link:hover {
  background-color: var(--white);
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===========================
   Search Results Section
   =========================== */
.search-results {
  padding: 3rem 0;
  min-height: 500px;
}

.loading-spinner {
  text-align: center;
  padding: 4rem 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.word-result-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.word-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.result-word {
  color: var(--primary-navy);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.word-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background-color: var(--light-gray);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--medium-gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.action-btn:hover {
  background-color: var(--primary-green);
  color: var(--white);
  transform: scale(1.1);
}

.word-definitions {
  color: var(--dark-gray);
}

.definition-item {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.definition-number {
  color: var(--primary-green);
  font-weight: 600;
  margin-right: 0.5rem;
}

.definition-type {
  color: var(--primary-navy);
  font-weight: 600;
  font-style: italic;
  margin-right: 0.5rem;
}

/* Ad Container */
.ad-container {
  position: sticky;
  top: 100px;
}

.ad-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.ad-badge {
  background-color: var(--light-gray);
  color: var(--medium-gray);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.ad-logo {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 0.5rem;
}

.ad-company-name {
  color: var(--primary-navy);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ad-website {
  color: var(--primary-green);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.ad-website:hover {
  text-decoration: underline;
}

.ad-description {
  color: var(--medium-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 0;
}

.no-results i {
  font-size: 4rem;
  color: var(--medium-gray);
  margin-bottom: 1rem;
}

.no-results h3 {
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--medium-gray);
}

/* ===========================
   Sponsors Section
   =========================== */
.sponsors-section {
  background-color: var(--light-gray);
  padding: 4rem 0;
  overflow: hidden;
}

.sponsors-carousel {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

.sponsors-track {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
}

.sponsor-item {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.sponsor-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.sponsor-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.sponsors-track:hover {
  animation-play-state: paused;
}

/* ===========================
   Footer Styles
   =========================== */
.site-footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-green);
  transform: translateY(-3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-email,
.footer-phone {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.footer-email:hover,
.footer-phone:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  .hero-search {
    padding: 2.5rem 0;
  }

  .info-card {
    margin-bottom: 1rem;
  }

  .result-word {
    font-size: 1.8rem;
  }

  .word-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .ad-container {
    position: static;
    margin-top: 2rem;
  }

  .footer-column {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }

  .word-result-card {
    padding: 1.5rem;
  }
}

/* ===========================
   Page Styles (Hakkımızda, İletişim)
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-green) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--white);
}

.breadcrumb-item.active {
  color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.page-content {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.content-card {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.content-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

.content-body p {
  margin-bottom: 1.5rem;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--medium-gray);
  margin: 0;
  line-height: 1.6;
}

/* Contact Form Styles */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
  outline: none;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Captcha Styles */
.captcha-container {
  background: var(--light-gray);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.captcha-question {
  font-weight: 600;
  color: var(--dark-gray);
  margin: 0;
}

.captcha-input {
  width: 80px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  font-weight: 600;
}

.captcha-input:focus {
  border-color: var(--primary-green);
  outline: none;
}

/* Contact Info */
.contact-info {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.contact-info-content p {
  color: var(--medium-gray);
  margin: 0;
  line-height: 1.5;
}

/* Alert Styles */
.alert {
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Responsive adjustments for page styles */
@media (max-width: 768px) {
  .page-hero {
    padding: 3rem 0 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .content-card,
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.75rem;
  }
  
  .content-card,
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
  
  .captcha-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
