/* style.css - Tüm stiller (mevcut haliyle aynen kullanılabilir) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fb;
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --orange: #e25c2a;
  --orange-light: #f26e3a;
  --purple: #6d3fd0;
  --purple-light: #8a5cf0;
  --border: #cfdee9;
  --shadow: rgba(0, 0, 0, 0.06);
  --ad-bg: #fff1e6;
  --ad-border: #fcd9b6;
  --hover-bg: rgba(226, 92, 42, 0.1);
  --hover-border: #e25c2a;
  --card-bg: #ffffff;
  --modal-btn-text: #1e293b;
  --gradient-text: linear-gradient(135deg, var(--orange), var(--purple));
}

[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --text-primary: #eef2ff;
  --text-secondary: #cbd5e1;
  --border: #1f2a40;
  --shadow: rgba(0, 0, 0, 0.5);
  --ad-bg: #2d2318;
  --ad-border: #6b4c2c;
  --hover-bg: rgba(226, 92, 42, 0.25);
  --hover-border: #f26e3a;
  --card-bg: #1a2538;
  --modal-btn-text: #eef2ff;
  --gradient-text: linear-gradient(
    135deg,
    var(--orange-light),
    var(--purple-light)
  );
}

body {
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.25s ease, color 0.2s ease;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.left-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 60px;
  width: 52px;
  height: 52px;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px var(--shadow);
}
.theme-toggle:hover {
  transform: scale(1.02) rotate(6deg);
  background: var(--orange-light);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  padding: 6px 20px 6px 16px;
  border-radius: 60px;
  border: 1px solid var(--border);
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}
.user-name {
  font-weight: 600;
  color: var(--text-primary);
}
.login-btn,
.register-header-btn {
  padding: 8px 28px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: white;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-width: 120px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(109, 63, 208, 0.25);
}
.register-header-btn {
  background: linear-gradient(135deg, var(--orange), var(--purple));
}
.login-btn:hover,
.register-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(109, 63, 208, 0.35);
}
.logout-btn {
  padding: 6px 16px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 40px;
  cursor: pointer;
  height: 36px;
}

.hero-header {
  background: linear-gradient(
    125deg,
    rgba(226, 92, 42, 0.05),
    rgba(109, 63, 208, 0.05)
  );
  border-radius: 42px;
  padding: 20px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 140px;
}
.grid-3x4 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 100%;
}
.grid-cell {
  position: relative;
  overflow: visible;
}
.floating-letter {
  position: absolute;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.16;
  filter: blur(1px);
  animation: softDrift 12s infinite alternate ease-in-out;
  white-space: nowrap;
  pointer-events: none;
}
@keyframes softDrift {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  100% {
    transform: translateY(-8px) rotate(5deg);
    opacity: 0.18;
  }
}
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 2;
}
.subtitle {
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}
.subtitle-highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.word-finder {
  background: var(--bg-secondary);
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}
.word-finder .input-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.word-finder .input-group input {
  flex: 3;
  min-width: 200px;
}
.word-finder .input-group button {
  flex: 1;
  min-width: 120px;
}
.word-finder .input-group button:hover {
  transform: scale(1.03);
}
.word-finder .result-area {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid var(--border);
}
.word-finder .found-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.word-finder .found-word {
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}
.word-finder .hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

.daily-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.daily-card {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 32px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.daily-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow);
}
.daily-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.daily-card .question {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-left: 4px;
}
.daily-card .answer {
  display: none;
  font-size: 0.95rem;
  color: var(--orange);
  font-weight: 600;
  padding-left: 4px;
}
.daily-card .answer.visible {
  display: block;
}
.daily-card .show-answer-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-secondary);
  margin-top: 8px;
}
.daily-card .show-answer-btn:hover {
  background: var(--hover-bg);
  border-color: var(--hover-border);
}
.daily-card .button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}

.archive-toggle {
  background: var(--purple);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  color: white;
  font-weight: 600;
  transition: all 0.2s;
}
.archive-toggle:hover {
  background: var(--purple);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(200, 92, 200, 0.4);
}
.submit-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.submit-btn:hover {
  background: var(--orange-light);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(226, 92, 42, 0.4);
}
.archive-content {
  margin-top: 15px;
  padding: 15px;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid var(--border);
  max-height: 400px;
  overflow-y: auto;
}

.archive-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.archive-item:last-child {
  border-bottom: none;
}
.archive-item .date {
  font-weight: 600;
  color: var(--purple);
  font-size: 0.85rem;
}
.archive-item .q {
  font-weight: 500;
  margin-top: 4px;
}
.archive-item .a {
  color: var(--orange);
  margin-top: 2px;
  font-size: 0.9rem;
}

.tabs-row {
  margin-bottom: 32px;
}
.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tab {
  flex: 1;
  min-width: 130px;
  padding: 12px 12px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 48px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.25s ease;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tab:hover {
  background: var(--hover-bg);
  border-color: var(--hover-border);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 22px var(--shadow);
}
.tab.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: white;
  border-color: transparent;
}
.tool-section {
  display: none;
  background: var(--bg-secondary);
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  transition: all 0.2s;
}
.tool-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.palindrome-info {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--orange);
}
.palindrome-result {
  white-space: pre-wrap;
  word-break: break-word;
}
#palindromeResult {
  font-weight: 100;
}
.poem-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.poem-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 8px 18px;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  transition: all 0.2s;
}
.poem-btn:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-2px);
  border-color: var(--orange);
}
.ad-container {
  background: var(--ad-bg);
  border: 2px dashed var(--ad-border);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}
textarea,
input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
}
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
button {
  flex: 1;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
}
button:hover {
  transform: scale(1.03);
}
.result {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.stat-card {
  background: var(--bg-primary);
  padding: 18px;
  border-radius: 24px;
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.word-badge {
  background: linear-gradient(135deg, var(--orange), var(--purple));
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
}

.poem-accordion {
  margin-top: 20px;
}
.poem-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.poem-header {
  padding: 12px 16px;
  background: var(--bg-secondary);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.2s;
  text-align: center;
}
.poem-header:hover {
  background: var(--hover-bg);
}
.poem-content {
  padding: 6px;
  background: var(--bg-primary);
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}
.poem-content pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}
.poem-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 12px 20px;
  margin-bottom: 12px;
  border-radius: 12px;
  border-left: 5px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px var(--shadow);
}

/* İstersen başlığın altına ince bir çizgi de ekleyebilirsin */
.poem-section-title::before {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(270deg, grey, transparent);
  margin-left: 12px;
}
.poem-section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, grey, transparent);
  margin-left: 12px;
}

footer {
  margin-top: 40px;
  background: var(--bg-secondary);
  border-radius: 32px;
  padding: 28px 28px;
  border: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col li::before {
  content: "☆";
  font-size: 0.7rem;
  color: var(--purple);
  opacity: 0.7;
}
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.85rem;
  cursor: pointer;
}
.footer-col a:hover {
  color: var(--orange);
  transform: translateX(3px);
  display: inline-block;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.remember-me-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px 0;
  padding-left: 4px;
}

.remember-me-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}

.remember-me-wrapper label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.remember-me-wrapper label:hover {
  color: var(--text-primary);
}
.modal .social-btn,
.modal .email-login-btn {
  color: var(--modal-btn-text);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-weight: 600;
}
.modal-content {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: 48px;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
}
.email-input {
  margin: 15px 0;
}
.error-msg {
  color: #e25c2a;
  font-size: 0.8rem;
  margin-top: 5px;
}

@media (max-width: 680px) {
  .tab {
    min-width: 110px;
    font-size: 0.85rem;
  }
  .floating-letter {
    font-size: 20px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .word-finder .input-group input,
  .word-finder .input-group button {
    flex: 1 1 100%;
  }
  .daily-section {
    grid-template-columns: 1fr;
  }
}
