/**
 * Global styles – navbar, footer, cookie consent, base reset.
 * Her sayfada bu dosya yüklenir. Sayfa özel stiller ayrı CSS dosyalarındadır.
 */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Tema: Tattoo Projects-inspired bold design with original palette */
:root {
  --color-dark: #1A3263;
  --color-mid: #547792;
  --color-accent: #FAB95B;
  --color-light: #E8E2DB;
  --bg-page: #f5f7fa;
  --bg-card: #ffffff;
  --text-primary: #1A3263;
  --text-muted: #547792;
  --border: #E8E2DB;
  --shadow: 0 2px 8px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
}

/* ========== BASE RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
}

/* Custom cursor only on pages that have the cursor elements */
body.has-custom-cursor {
  cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

/* Hide default scrollbar for cleaner look */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-mid);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

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

ul {
  list-style: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  background: var(--color-accent);
  color: var(--color-dark);
  text-decoration: none;
  border-radius: 0;
  font-weight: 700;
  z-index: 10000;
  transition: top 0.2s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========== NAVBAR ========== */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 50, 99, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding 0.3s ease, background 0.3s ease;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.navbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.navbar li a {
  font-size: 0.85rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  display: block;
  transition: color 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.navbar li a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar li a:hover {
  color: #fff;
  background: transparent;
}

.navbar li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-contact {
  display: flex;
  align-items: center;
}

.nav-email {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.nav-email:hover {
  color: var(--color-accent);
}

/* Hamburger - new line-based design */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.hamburger-line {
  width: 28px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle:checked + .hamburger .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle:checked + .hamburger .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle:checked + .hamburger .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Dropdown Menu */
.navbar li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 180px;
  box-shadow: var(--shadow-md);
  border-radius: 0;
  padding: 8px 0;
  list-style: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.dropdown-menu li a {
  padding: 12px 20px;
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  transition: background-color 0.2s ease, padding-left 0.3s ease;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
  padding-left: 28px;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .navbar-container {
    padding: 12px 24px;
  }

  .navbar-contact {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 50, 99, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    animation: navSlideDown 0.4s ease forwards;
  }

  .menu-toggle:checked + .hamburger + .navbar {
    display: flex;
  }

  .navbar li a {
    padding: 16px 40px;
    width: 100%;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar li a::after {
    display: none;
  }

  .navbar li:last-child a {
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    padding-left: 20px;
  }

  .menu-toggle:checked ~ .navbar .dropdown:hover .dropdown-menu,
  .menu-toggle:checked ~ .navbar .dropdown.active .dropdown-menu {
    display: block;
  }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
}

.footer-col h4::before {
  display: none;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
}

.footer-rights {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  margin: 0;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.back-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .footer-inner {
    padding: 60px 24px 32px;
  }

  .footer-top {
    flex-direction: column;
    gap: 48px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-nav {
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 32px;
  }
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-popup.show {
  opacity: 1;
  visibility: visible;
}

.cookie-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.cookie-popup-content {
  position: relative;
  background: var(--bg-card);
  max-width: 550px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cookie-consent-popup.show .cookie-popup-content {
  transform: scale(1) translateY(0);
}

.cookie-popup-header {
  background: var(--color-dark);
  padding: 30px;
  text-align: center;
  color: white;
}

.cookie-popup-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: cookieBounce 2s ease-in-out infinite;
}

@keyframes cookieBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.cookie-popup-header h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

.cookie-popup-body {
  padding: 30px;
}

.cookie-popup-body p {
  margin: 0 0 20px 0;
  color: var(--color-dark);
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: center;
}

.cookie-popup-footer {
  padding: 20px 30px 30px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}

.cookie-btn {
  padding: 14px 28px !important;
  border: none;
  border-radius: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: none !important;
}

.cookie-btn-primary {
  background: var(--color-accent) !important;
  color: var(--color-dark) !important;
}

.cookie-btn-primary:hover {
  background: var(--color-mid) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(26, 50, 99, 0.3) !important;
}

.cookie-btn-secondary {
  background: var(--bg-card) !important;
  color: var(--color-dark) !important;
  border: 1px solid var(--border) !important;
}

.cookie-btn-secondary:hover {
  border-color: var(--color-mid) !important;
  color: var(--color-mid) !important;
  transform: translateY(-2px) !important;
}

.cookie-settings-modal {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
}

.cookie-required-badge {
  background: var(--color-mid);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.cookie-settings-footer {
  padding: 24px !important;
  gap: 12px !important;
  background: var(--bg-page) !important;
}

.cookie-settings-footer .cookie-btn {
  min-width: 140px;
  padding: 14px 32px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#cookieSettingsModal {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
}

#cookieSettingsModal.show {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px) !important;
}

@media (max-width: 768px) {
  .cookie-popup-content {
    max-width: 100%;
    margin: 10px;
  }

  .cookie-popup-header {
    padding: 25px 20px;
  }

  .cookie-popup-header h3 {
    font-size: 1.4rem;
  }

  .cookie-popup-icon {
    font-size: 2.5rem;
  }

  .cookie-popup-body {
    padding: 25px 20px;
  }

  .cookie-popup-footer {
    padding: 20px;
    flex-direction: column;
  }

  .cookie-popup-footer .cookie-btn {
    width: 100%;
  }
}

/* ========== SELECTION ========== */
::selection {
  background: var(--color-accent);
  color: var(--color-dark);
}
