/* cumhuriyet-bayrak home theme (Artstelve) */
:root {
  --primary-color: #e11d48;
  --primary-color-dark: #be123c;
  --primary-color-light: rgba(225, 29, 72, 0.18);

  --accent-color: #ffffff;

  --background-color: #0b0b10;
  --card-background: rgba(255, 255, 255, 0.08);
  --input-background: rgba(255, 255, 255, 0.10);
  --border-color: rgba(255, 255, 255, 0.20);
  --hover-background: rgba(255, 255, 255, 0.10);

  --text-color: rgba(255, 255, 255, 0.95);
  --text-color-secondary: rgba(255, 255, 255, 0.78);
  --link-color: #ffffff;
  --link-color-visited: rgba(255, 255, 255, 0.85);

  --danger-color: #fb7185;
  --radius-base: 16px;
}

body {
  color: var(--text-color);
}

/* Red-white flag inspired background */
body[data-route="/"] {
  overflow-x: hidden;
  background:
    radial-gradient(850px 520px at 20% 12%, rgba(225, 29, 72, 0.35), transparent 60%),
    radial-gradient(900px 560px at 85% 18%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #07070c 0%, #0b0b10 48%, #07070c 100%);
}

/* Add a subtle waving stripe effect */
body[data-route="/"] .home-container {
  position: relative;
  min-height: 100vh;
  padding: 22px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body[data-route="/"] .home-container::before {
  content: "";
  position: absolute;
  inset: -40px -40px auto -40px;
  height: 260px;
  background:
    linear-gradient(90deg, rgba(225,29,72,0.75), rgba(225,29,72,0.55), rgba(225,29,72,0.75));
  opacity: 0.20;
  filter: blur(22px);
  transform: skewY(-4deg);
  pointer-events: none;
}

body[data-route="/"] .home-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.06) 0px,
      rgba(255,255,255,0.06) 10px,
      transparent 10px,
      transparent 22px
    );
  opacity: 0.08;
  pointer-events: none;
}

/* Keep content above background layers */
body[data-route="/"] .home-header,
body[data-route="/"] .logo-container,
body[data-route="/"] .search-container {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  body[data-route="/"] .home-container {
    padding: 46px 24px 76px;
  }
}

/* Header menu button */
body[data-route="/"] .home-header {
  width: min(1100px, 100%);
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

body[data-route="/"] .home-header .menu-button {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
body[data-route="/"] .home-header .menu-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

/* “Turkish flag” logo presentation (red ring + white highlight) */
body[data-route="/"] .logo-container {
  width: min(1100px, 100%);
  text-align: center;
  margin-top: 6px;
  margin-bottom: 22px;
}

body[data-route="/"] .logo-container .logo {
  width: 94px;
  height: 94px;
  object-fit: contain;

  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.28), rgba(255,255,255,0.00) 55%);
  border-radius: 999px;

  padding: 10px;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow:
    0 0 0 10px rgba(225,29,72,0.38),
    0 18px 40px rgba(0,0,0,0.40);
}

/* A minimal crescent-star “gesture” using CSS (decorative only) */
body[data-route="/"] .logo-container {
  position: relative;
}
body[data-route="/"] .logo-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 22px;
  height: 22px;
  transform: translateX(44px);
  border-radius: 999px;
  box-shadow:
    -7px 0 0 0 rgba(255,255,255,0.92);
  opacity: 0.85;
  pointer-events: none;
}
body[data-route="/"] .logo-container::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(66px);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  opacity: 0.90;
  pointer-events: none;
}

body[data-route="/"] .logo-container h1 {
  margin: 16px 0 6px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.95rem, 3.7vw, 3.25rem);
  line-height: 1.05;

  background: linear-gradient(120deg, #ffffff 0%, #ffe4e6 45%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-route="/"] .logo-container .subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color-secondary);
}

/* Red ribbon under subtitle */
body[data-route="/"] .logo-container .subtitle::after {
  content: "";
  display: block;
  width: min(560px, 86%);
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, rgba(225,29,72,0.95), transparent);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(225,29,72,0.22);
}

/* Search */
body[data-route="/"] .search-container {
  width: min(940px, 100%);
  margin-top: 10px;
}

body[data-route="/"] .search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 12px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 24px 60px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

body[data-route="/"] .search-box .search-icon {
  color: rgba(255,255,255,0.82);
  margin-left: 6px;
}

body[data-route="/"] .search-box .search-input {
  width: 100%;
  outline: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.95);
  font-size: 1.02rem;
}
body[data-route="/"] .search-box .search-input::placeholder {
  color: rgba(255,255,255,0.60);
}

/* Buttons */
body[data-route="/"] .search-box .clear-button,
body[data-route="/"] .search-box .mic-button,
body[data-route="/"] .search-box .search-action-button {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  border-radius: 999px;
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

body[data-route="/"] .search-box .search-action-button {
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(225,29,72,0.98), rgba(255,255,255,0.18));
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 14px 30px rgba(225,29,72,0.24);
}
body[data-route="/"] .search-box .clear-button:hover,
body[data-route="/"] .search-box .mic-button:hover,
body[data-route="/"] .search-box .search-action-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}

/* Suggestions */
body[data-route="/"] .suggestions-dropdown {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(16, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  overflow: hidden;
}

body[data-route="/"] .suggestions-header {
  padding: 12px 14px;
  color: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

body[data-route="/"] .suggestion-item {
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.95);
}
body[data-route="/"] .suggestion-item:hover,
body[data-route="/"] .suggestion-item.focused {
  background: rgba(255,255,255,0.10);
}

/* Mobile */
@media (max-width: 480px) {
  body[data-route="/"] .logo-container .logo {
    width: 80px;
    height: 80px;
    padding: 9px;
  }
  body[data-route="/"] .search-box {
    padding: 10px 10px;
  }
  body[data-route="/"] .search-box .clear-button,
  body[data-route="/"] .search-box .mic-button,
  body[data-route="/"] .search-box .search-action-button {
    height: 40px;
    min-width: 40px;
  }
}
