/*
Theme Name: TimerStart
Theme URI: https://timerstart.com
Author: TimerStart
Author URI: https://timerstart.com
Description: Hassas bir tarih hesaplama aracı - TimerStart WordPress Teması
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timerstart
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* DARK THEME (DEFAULT) */
:root {
  --bg: #0f0f11;
  --fg: #e8e8ea;
  --card: #1a1a1f;
  --card-bg: rgba(26,26,31,0.75);
  --primary: #3b82f6;
  --primary-fg: #ffffff;
  --primary-10: rgba(59,130,246,0.12);
  --muted: #27272e;
  --muted-fg: #9ca3af;
  --border: rgba(255,255,255,0.08);
  --accent: rgba(255,255,255,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
  --radius: 1rem;
  --dropdown-bg: #1e1e24;
  --dropdown-border: rgba(255,255,255,0.1);
  --dropdown-hover: rgba(255,255,255,0.06);
  --toggle-bg: #27272e;
  --toggle-active: var(--primary);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg: #fafaf8;
  --fg: #1a1a18;
  --card: #ffffff;
  --card-bg: rgba(255,255,255,0.6);
  --primary: #2563eb;
  --primary-fg: #ffffff;
  --primary-10: rgba(37,99,235,0.08);
  --muted: #f4f4f2;
  --muted-fg: #6b7280;
  --border: rgba(0,0,0,0.08);
  --accent: #f0f0ee;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(0,0,0,0.1);
  --dropdown-hover: rgba(0,0,0,0.04);
  --toggle-bg: #e5e7eb;
  --toggle-active: var(--primary);
}

html { scroll-behavior: smooth; }
::selection { background: rgba(59,130,246,0.2); }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100; width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}
.header-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 1.5rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); }
.logo-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; color: var(--primary-fg); box-shadow: var(--shadow-sm);
}
.logo-icon svg { width: 1.1rem; height: 1.1rem; }
.logo-text { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.header-right { display: flex; align-items: center; gap: 1rem; position: relative; }
.header-tagline { font-size: 0.85rem; font-weight: 500; color: var(--muted-fg); }
@media (max-width: 640px) { .header-tagline { display: none; } }

.icon-btn {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--muted-fg); transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--accent); color: var(--fg); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }

/* SETTINGS DROPDOWN */
.settings-wrap { position: relative; }
.settings-dropdown {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  width: 260px; background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 0.75rem; padding: 0.5rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
}
.settings-dropdown.open {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.dropdown-label {
  padding: 0.5rem 1rem 0.35rem;
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-fg);
}
.dropdown-divider { height: 1px; background: var(--dropdown-border); margin: 0.35rem 0; }

/* THEME TOGGLE */
.theme-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
}
.theme-toggle-row span { font-size: 0.85rem; font-weight: 500; }
.toggle-switch {
  width: 44px; height: 24px; border-radius: 999px;
  background: var(--toggle-bg); border: none; cursor: pointer;
  position: relative; transition: background 0.2s; padding: 0;
}
.toggle-switch.active { background: var(--toggle-active); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.active .toggle-knob { transform: translateX(20px); }

/* MAIN */
main { flex: 1; }

/* HERO */
.hero { max-width: 1024px; margin: 0 auto; padding: 5rem 1.5rem 6rem; }
.hero-content { max-width: 48rem; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 1.25rem; color: var(--fg);
  animation: fadeUp 0.6s ease both;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-fg); line-height: 1.65;
  margin-bottom: 2.5rem; max-width: 36rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--primary-fg);
  padding: 1rem 2rem; border-radius: 999px; text-decoration: none;
  font-size: 1rem; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  animation: fadeUp 0.6s 0.2s ease both;
}
.cta-btn:hover { background: #1d4ed8; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.cta-btn svg { width: 1.1rem; height: 1.1rem; }

/* FEATURES */
.features-section {
  background: var(--card-bg); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 5rem 0;
  transition: background 0.3s, border-color 0.3s;
}
.features-inner { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: var(--primary-10); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.25rem; color: var(--primary);
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.feature-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 500; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted-fg); font-size: 0.9rem; line-height: 1.6; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border); padding: 2rem 0;
  background: var(--card-bg); transition: background 0.3s, border-color 0.3s;
}
.footer-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  font-size: 0.85rem; color: var(--muted-fg);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-links a { color: var(--muted-fg); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--border); padding-top: 1rem;
}
.footer-bottom p { font-size: 0.75rem; }
.yt-link {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; color: var(--muted-fg); text-decoration: none; transition: color 0.15s;
}
.yt-link:hover { color: #ef4444; }
.yt-link svg { width: 1rem; height: 1rem; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
