/* Genel Stiller */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #333;
}

header {
  background-color: #003366; /* Güven veren koyu mavi */
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header p {
  color: #ccd;
  font-size: 1.1rem;
}

/* Ana Konteyner */
.container {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.container-s {
    /* max-width: 960px; */
    margin: 20px auto;
    padding: 10px;
    /* background: #ffffff; */
    border-radius: 10px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 25%);
}


/* Hesaplama Alanı */
.calculator {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.calculator input[type="number"] {
  flex: 1 1 200px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.calculator button {
  flex: 1 1 200px;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #003366;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.calculator button:hover {
  background-color: #002244;
}

.result {
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
  background: #f1f3f5;
  padding: 20px;
  border-radius: 6px;
  word-break: break-word;
}

/* Konu Anlatımı */
.konu-anlatimi {
  margin-top: 40px;
}

.konu-anlatimi h2,
.konu-anlatimi h3 {
  color: #003366;
  margin-bottom: 10px;
}

.konu-anlatimi p,
.konu-anlatimi ul {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.konu-anlatimi ul {
  padding-left: 20px;
}

/* Tablo */
.faktoriyel-tablo {
  margin-top: 40px;
}

.responsive-table {
  overflow-x: auto;
  margin-top: 10px;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
}

.responsive-table th,
.responsive-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.responsive-table tr:hover {
  background-color: #f1f1f1;
}

/* FAQ / Accordion */
.faq-section {
  margin-top: 40px;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.accordion-button {
  width: 100%;
  background-color: #1d3557;
  color: #ffffff;
  padding: 15px;
  text-align: left;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-button:hover {
  background-color: #457b9d;
}

.accordion-content {
  padding: 15px;
  background: #ffffff;
  border-top: 1px solid #ccc;
  display: none;
}

.accordion-content.active {
  display: block;
}


/* İlgili Hesap Makineleri */
/*
.related-calculators {
  margin-top: 40px;
}
*/
.related-calculators ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
*/

.related-calculators li {
  flex: 1 1 200px;
}

.related-calculators a {
  display: flex;
  text-decoration: none;
  background: /*#003366;*/white;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  transition: background 0.3s ease;
}

*/

.related-calculators a:hover {
  background: #002244;
}

*/
/* Footer */
footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 14px;
}

/* Code & Pre */
pre, code {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

pre {
  padding: 1em;
  margin: 1em 0;
  overflow-x: auto;
  white-space: pre-wrap; /* Satır sonlarında otomatik sarma */
  word-wrap: break-word;
}

code {
  padding: 0.2em 0.4em;
  font-size: 0.95em;
}




/* Responsive */
@media (max-width: 7680px) {
  .calculator input[type="number"],
  .calculator button {
    flex: 1 1 100%;
  }
}
