/* ========================================= */
/* BİLİMSEL HESAP MAKİNESİ ÖZEL TASARIMLARI  */
/* ========================================= */

.calculator-wrapper { width: 100%; max-width: 650px; margin: 30px auto 0 auto; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: background-color 0.4s, box-shadow 0.4s; }

/* Ekran Tasarımı */
.sci-input { width: 100%; padding: 20px; font-size: 24px; font-family: 'Courier New', Courier, monospace; font-weight: bold; border: 2px solid #bdc3c7; border-radius: 8px; outline: none; transition: 0.3s; text-align: right; box-sizing: border-box; margin-bottom: 15px; color: #2c3e50; background-color: #fcfcfc; }
.sci-input:focus { border-color: #3498db; box-shadow: 0 0 8px rgba(52, 152, 219, 0.3); }

.result-box { background-color: #e8f4f8; padding: 20px; border-radius: 8px; font-size: 22px; font-weight: bold; color: #2c3e50; text-align: left; border: 2px dashed #3498db; line-height: 1.6; transition: background-color 0.4s, color 0.4s; margin-bottom: 25px; word-wrap: break-word; }
.hint-text { font-size: 13px; color: #7f8c8d; text-align: right; margin-top: -10px; margin-bottom: 15px; display: block; transition: color 0.4s; }

/* Buton Izgarası */
.calc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

.calc-btn { padding: 15px 5px; font-size: 18px; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s; font-weight: bold; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.calc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.calc-btn:active { transform: translateY(1px); }

/* Buton Renklendirmeleri */
.btn-num { background-color: #f1f2f6; color: #2c3e50; }
.btn-num:hover { background-color: #dfe4ea; }

.btn-func { background-color: #e8f4f8; color: #2980b9; }
.btn-func:hover { background-color: #d1eaf5; }

.btn-op { background-color: #3498db; color: white; }
.btn-op:hover { background-color: #2980b9; }

.btn-action { background-color: #e74c3c; color: white; }
.btn-action:hover { background-color: #c0392b; }

.btn-eq { background-color: #27ae60; color: white; grid-column: span 2; }
.btn-eq:hover { background-color: #2ecc71; }

/* ========================================= */
/* BİLİMSEL SAYFASI KARANLIK TEMA KODLARI    */
/* ========================================= */
html.dark-mode .calculator-wrapper { background-color: #1e1e1e; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
html.dark-mode .sci-input { background-color: #121212; color: #f1f1f1; border-color: #444; }
html.dark-mode .result-box { background-color: #121212; color: #f1f1f1; border-color: #3498db; }
html.dark-mode .hint-text { color: #aaaaaa; }

html.dark-mode .btn-num { background-color: #2c3e50; color: #f1f1f1; box-shadow: none; }
html.dark-mode .btn-num:hover { background-color: #34495e; }
html.dark-mode .btn-func { background-color: #1f2a36; color: #3498db; box-shadow: none; }
html.dark-mode .btn-func:hover { background-color: #2c3e50; }

/* ========================================= */
/* BİLİMSEL SAYFASI MOBİL UYUMLULUK          */
/* ========================================= */
@media (max-width: 800px) {
    .calc-grid { gap: 6px; }
    .calc-btn { padding: 12px 2px; font-size: 16px; }
    .sci-input { font-size: 20px; padding: 15px; }
}