/* Ana Stiller */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar Stilleri */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
}

/* Kart Stilleri */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease;
}

body:not(.reduce-motion) .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.card-footer {
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px !important;
    transition: background-color 0.3s ease;
}

/* Tablo Stilleri */
.table {
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.table th {
    font-weight: 600;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Buton Stilleri */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-group .btn {
    border-radius: 5px;
}

/* Badge Stilleri */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Form Stilleri */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Özel Renkler */
.bg-crypto-green {
    background-color: #00c853;
}

.bg-crypto-red {
    background-color: #ff3d00;
}

/* Animasyonlar */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

body:not(.reduce-motion) .pulse {
    animation: pulse 2s infinite;
}

/* Erişilebilirlik Stilleri */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
}

/* Yüksek Kontrast Modu */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .card,
body.high-contrast .navbar,
body.high-contrast .modal-content,
body.high-contrast .dropdown-menu {
    background-color: #000 !important;
    border: 2px solid #fff !important;
}

body.high-contrast .card-header,
body.high-contrast .card-footer {
    background-color: #333 !important;
    color: #fff !important;
}

body.high-contrast .btn {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

body.high-contrast .btn:hover,
body.high-contrast .btn:focus {
    background-color: #333 !important;
}

body.high-contrast .form-control,
body.high-contrast .form-select {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

body.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

/* Odaklanma Vurgusu */
body.focus-highlight :focus {
    outline: 3px solid #ff9800 !important;
    outline-offset: 3px !important;
}

/* Tema Değiştirici */
.theme-switcher {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* "Ana içeriğe atla" bağlantısı */
.visually-hidden-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden-focusable:active,
.visually-hidden-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Duyarlı Tasarım */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    /* Mobil görünümde bazı metinleri gizle */
    .d-none-mobile {
        display: none !important;
    }
}

/* Ekran okuyucu için yardımcı sınıflar */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}