:root {
    --primary-glass-color: rgba(255, 255, 255, 0.1);
    --secondary-glass-color: rgba(255, 255, 255, 0.05);
    --accent-glass-color: #63b3ed;
    --text-glass-color: #ffffff;
    --shadow-glass-color: rgba(0, 0, 0, 0.1);
    --glass-bg-color: rgba(30, 41, 59, 0.9);
    --input-bg-color: #e5e5e5; /* Hafif gri ton */
}

/* Genel sıfırlama ve taşma önleme */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    background-color: #d3d3d3; /* Daha koyu bir gri ton */
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Tema uyumluluğu */
h3, .popularhaber, h3#reply-title, h3.relatedpost { color: #2d3748; }
a.more-link, span.page-numbers.current, a.comment-reply-link, input#submit, .top { background: #63b3ed; }
ul li::before { color: #63b3ed; }
h3, h2, h4, h5, h6, .popularhaber, h3#reply-title, h3.relatedpost { border-left: 15px solid #63b3ed; }
.footerc { display: none; }

/* Header ve mobil menü için yüksek z-index */
header, .site-header, .mobile-menu, .hamburger-menu, .nav-menu {
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

/* Ana Konteyner */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    position: relative;
    z-index: 0;
}

/* Döviz Çevirici Konteyneri */
.currency-converter-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    position: relative;
    z-index: 0;
}

.converter-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar için yüksek z-index */
.sidebar {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Yeni Çevirici Stilleri */
.new-converter {
    background-color: #2d2d2d;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 750px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    margin-bottom: 30px; /* Alt boşluk eklenerek ayrım sağlandı */
}

.new-converter h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #4CAF50;
    text-align: center;
    font-weight: 700;
}

.input-section {
    margin-bottom: 25px;
}

.input-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.input-group label {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #f5f5f5;
    text-align: center;
}

.input-group input, .input-group select {
    width: 100%;
    height: 50px;
    padding: 10px 16px;
    font-size: 18px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: var(--input-bg-color);
    color: #333;
    outline: none;
    box-sizing: border-box;
    line-height: 1.2;
    margin: 0;
}

.button-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 20px;
    font-size: 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.calculate-btn:active {
    transform: translateY(1px);
}

.calculate-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s;
}

.calculate-btn:hover::after {
    left: 100%;
}

.result {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
}

.result-label {
    font-size: 18px;
    opacity: 0.9;
    color: #f5f5f5;
}

.result-value {
    font-size: 48px;
    font-weight: 700;
    margin: 15px 0;
    color: #ffffff;
}

.result-currency {
    font-size: 20px;
    color: #f5f5f5;
}

.rates {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.rate-box {
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    font-weight: 600;
}

.buy {
    background-color: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
}

.sell {
    background-color: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
}

.rate-label {
    font-size: 16px;
    margin-bottom: 5px;
    color: #f5f5f5;
}

.rate-sub-label {
    font-size: 16px;
    margin-bottom: 10px;
    color: #f5f5f5;
    text-transform: capitalize;
}

.rate-value {
    font-size: 32px;
    font-weight: 700;
}

.buy .rate-value {
    color: #8BC34A;
}

.sell .rate-value {
    color: #FF5252;
}

.update {
    text-align: right;
    font-size: 14px;
    color: #aaa;
    margin-top: 25px;
}

.other-currencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.currency-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.currency-box:hover {
    transform: translateY(-5px);
}

.currency-flag {
    width: 40px;
    height: 30px;
    margin-bottom: 10px;
}

.currency-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.currency-result {
    font-size: 14px;
    color: #333;
}

/* Geçmiş Kurlar Tablosu */
.historical-rates {
    margin-top: 30px;
    margin-bottom: 30px; /* Alt boşluk eklenerek ayrım sağlandı */
}

.historical-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: rgba(30, 41, 59, 0.9); /* Daha koyu ve net arka plan */
    border-radius: 8px;
    overflow: hidden;
}

.historical-table th, .historical-table td {
    border: 1px solid var(--secondary-glass-color);
    padding: 12px;
    text-align: center;
    color: var(--text-glass-color); /* Beyaz yazı */
    font-size: 14px;
}

.historical-table th {
    background-color: var(--primary-glass-color);
    font-weight: 600;
    font-size: 16px;
}

.historical-table td {
    font-size: 14px;
}

.historical-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Hafif arka plan */
}

.historical-table tr:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Hover efekti */
}

/* Grafik Stilleri */
.chart-module {
    margin-top: 30px;
    margin-bottom: 30px; /* Alt boşluk eklenerek ayrım sağlandı */
}

.historical-chart-container {
    background-color: rgba(45, 45, 45, 0.9); /* Daha açık koyu ton, grafik için kontrast */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px var(--shadow-glass-color);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.historical-chart-container h2 {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 20px;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 300px;
}

/* Medya Sorguları */
@media (max-width: 992px) {
    .currency-converter-container {
        flex-direction: column;
        gap: 10px;
    }
    .new-converter {
        padding: 30px;
        max-width: 100%;
    }
    .input-row {
        flex-direction: column;
        gap: 15px;
    }
    .input-group {
        width: 100%;
    }
    .button-section {
        flex-direction: column;
        gap: 15px;
    }
    .calculate-btn {
        width: 100%;
    }
    .historical-table th, .historical-table td {
        padding: 10px;
        font-size: 12px;
    }
    .historical-chart-container {
        max-width: 100%;
    }
    .chart-wrapper {
        height: 250px;
    }
    .chart-wrapper canvas {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin-top: 80px;
    }
    .new-converter h1 {
        font-size: 32px;
    }
    .input-group input, .input-group select {
        font-size: 16px;
        padding: 10px 16px;
        height: 45px;
    }
    .calculate-btn {
        font-size: 18px;
        padding: 15px;
    }
    .result-value {
        font-size: 36px;
    }
    .rate-value {
        font-size: 24px;
    }
    .other-currencies-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .historical-table th, .historical-table td {
        padding: 8px;
        font-size: 11px;
    }
    .historical-chart-container h2 {
        font-size: 20px;
    }
    .chart-wrapper {
        height: 200px;
    }
    .chart-wrapper canvas {
        max-height: 200px;
    }
}

@media (max-width: 600px) {
    .main-container {
        padding: 0 10px;
        margin-top: 60px;
    }
    .new-converter {
        padding: 20px;
    }
    .new-converter h1 {
        font-size: 24px;
    }
    .input-group input, .input-group select {
        font-size: 14px;
        padding: 8px 12px;
        height: 40px;
    }
    .calculate-btn {
        font-size: 16px;
        padding: 12px;
    }
    .result-value {
        font-size: 28px;
    }
    .rate-value {
        font-size: 20px;
    }
    .other-currencies-grid {
        grid-template-columns: 1fr;
    }
    .historical-table th, .historical-table td {
        padding: 6px;
        font-size: 10px;
    }
    .historical-chart-container h2 {
        font-size: 18px;
    }
    .chart-wrapper {
        height: 180px;
    }
    .chart-wrapper canvas {
        max-height: 180px;
    }
}