/* style.css - HesapAraçlarım Ana Stil Dosyası */
:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }

/* Skip to Content - Accessibility */
.skip-to-content {
  position: absolute;
  top: -50px;
  left: 0;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  z-index: 10000;
  transition: top 0.3s;
  font-size: 14px;
  border-radius: 0 0 4px 0;
}
.skip-to-content:focus {
  top: 0;
}

/* Background Animation */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 20s infinite ease-in-out alternate; }
.orb-1 { width: 400px; height: 400px; background: #3b82f6; top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: -50px; right: -50px; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: #0ea5e9; top: 40%; left: 40%; animation-delay: -10s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; }
.logo-icon { background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; color: transparent; }
.logo-text span { color: var(--primary-color); }
.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

/* Dropdown Menu */
.nav-item-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 200;
}
.nav-item-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  text-align: left;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--primary-color);
}

/* Grid Items */
.tool-grid-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-main);
}
.tool-grid-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.tool-grid-item .tool-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}
.tool-grid-item h3 {
  font-size: 15px;
  margin-bottom: 0;
  color: #ffffff;
}
.tool-grid-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
.tool-grid-icon { font-size: 40px; margin-bottom: 15px; }

/* Hero */
.tool-hero { text-align: center; padding: 60px 0 40px; }
.tool-hero h1 { font-size: 42px; margin-bottom: 15px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; color: transparent; }
.tool-hero p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }
.tool-icon { font-size: 64px; margin-bottom: 20px; }

/* Card */
.tool-card-main {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-full { width: 100%; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* Results */
.result-panel {
  margin-top: 30px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: none;
  animation: slideUp 0.4s ease forwards;
}
.result-panel.active { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.result-item { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 8px; }
.result-label { font-size: 14px; color: var(--text-muted); margin-bottom: 5px; }
.result-value { font-size: 28px; font-weight: 700; color: white; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-item { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; text-align: center; }
.stat-value { font-size: 24px; font-weight: bold; color: var(--primary-color); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }

/* Grid Table */
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.data-table th, .data-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { color: var(--text-muted); font-weight: 500; font-size: 14px; }

/* Meter */
.meter-container { width: 100%; height: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; margin: 20px 0 10px; overflow: hidden; position: relative; }
.meter-fill { height: 100%; background: var(--primary-color); transition: width 0.5s ease, background-color 0.5s ease; width: 0; }
.meter-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-color); padding: 40px 0; margin-top: 60px; text-align: center; }
.footer-tools, .footer-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.footer-tools a, .footer-legal a { color: var(--text-muted); font-size: 14px; transition: color 0.3s; }
.footer-tools a:hover, .footer-legal a:hover { color: white; text-decoration: underline; }
.footer-copy { color: #64748b; font-size: 14px; margin-bottom: 15px; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}
.cookie-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cookie-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Content Depth - Article Section */
.content-section {
  margin-top: 40px;
}
.content-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}
.content-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-main);
}
.content-section p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.content-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.content-section ul li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}
.content-section ul li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 40px;
}
.faq-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s;
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary-color);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item .faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Related Tools */
.related-tools {
  margin-top: 40px;
}
.related-tools h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: center;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.related-tool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-main);
}
.related-tool-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-color);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.related-tool-card .related-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.related-tool-card span {
  font-size: 14px;
  font-weight: 500;
}

/* Breadcrumbs */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--primary-color);
}
.breadcrumb .separator {
  margin: 0 8px;
  color: #475569;
}
.breadcrumb .current {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-color); padding: 20px; border-bottom: 1px solid var(--border-color); }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .tool-card-main { padding: 20px; }
  .tool-hero h1 { font-size: 32px; }
  .cookie-content { flex-direction: column; text-align: center; }
}
