/* Genel Stiller */
:root {
    --primary-color: #e04c41;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --bs-primary: #e04c41;
    --bs-primary-rgb: 224, 76, 65;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* Link Renkleri */
a {
    color: #e04c41;
    text-decoration: none;
}

a:hover {
    color: #c43d33;
    text-decoration: underline;
}

/* Bootstrap Primary Renk Override */
.text-primary {
    color: #e04c41 !important;
}

.bg-primary {
    background-color: #e04c41 !important;
}

.btn-primary {
    background-color: #e04c41 !important;
    border-color: #e04c41 !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #c43d33 !important;
    border-color: #c43d33 !important;
    color: white !important;
}

.border-primary {
    border-color: #e04c41 !important;
}

.btn-outline-primary {
    color: #e04c41 !important;
    border-color: #e04c41 !important;
}

.btn-outline-primary:hover {
    background-color: #e04c41 !important;
    border-color: #e04c41 !important;
    color: white !important;
}

.badge.bg-primary {
    background-color: #e04c41 !important;
}

.alert-primary {
    background-color: rgba(224, 76, 65, 0.1) !important;
    border-color: #e04c41 !important;
    color: #c43d33 !important;
}

/* Navbar Stili */
.navbar-brand {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Ana Sayfa Hero */
.hero-section {
    background: linear-gradient(135deg, #e04c41 0%, #c43d33 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Arama Kutusu */
.search-box {
    position: relative;
    max-width: 700px;
    margin: 30px auto;
}

.search-box input {
    height: 60px;
    border-radius: 50px;
    padding: 0 60px 0 30px;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 10px;
    height: 40px;
    width: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    aspect-ratio: 1/1;
}

.search-box button:hover {
    background: #c43d33;
    transform: scale(1.1);
}

.search-box button i {
    font-size: 16px;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 10px;
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.search-result-item h6 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.search-result-item small {
    color: #6c757d;
    display: block;
    line-height: 1.4;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Harf Butonları */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 30px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.alphabet-btn {
    min-width: 50px;
    height: 50px;
    padding: 0 15px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.alphabet-btn:hover,
.alphabet-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 76, 65, 0.3);
}

.alphabet-btn:active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(224, 76, 65, 0.3);
}

.alphabet-btn:disabled,
.alphabet-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Kart Stili */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
}

.terim-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terim-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.terim-card .card-body {
    padding: 20px;
}

.terim-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.terim-card .card-text {
    color: #666;
    line-height: 1.6;
}

/* Badge */
.badge-letter {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Form Stili */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(224, 76, 65, 0.15);
}

/* Buton Stili */
.btn {
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 76, 65, 0.3);
}

.btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* İstatistik Kartları */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    margin: 0;
}

/* Loading Animasyonu */
.loading {
    text-align: center;
    padding: 50px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .search-box {
        margin: 20px auto;
    }

    .search-box input {
        height: 50px;
        font-size: 1rem;
        padding: 0 65px 0 20px;
    }

    .search-box button {
        right: 5px;
        top: 5px;
        height: 40px;
        width: 40px;
        min-width: 40px;
    }

    .alphabet-btn {
        min-width: 44px;
        height: 44px;
        font-size: 0.9rem;
        padding: 0 12px;
    }

    .card-img-top {
        height: 150px;
    }

    .stat-card {
        margin-bottom: 20px;
    }

    .navbar-brand img {
        height: 35px;
    }

    .social-links a {
        padding: 8px;
        margin-right: 12px !important;
    }

    /* Mobilde hover efektlerini devre dışı bırak */
    .card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .stat-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    .alphabet-btn:hover {
        transform: none;
    }
}

/* Admin Panel */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #343a40;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 5px;
    margin: 5px 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.table-actions .btn {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Görsel Önizleme */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Alert Stili */
.alert {
    border-radius: 10px;
    border: none;
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.page-link {
    border-radius: 5px;
    margin: 0 3px;
    border: none;
    color: var(--primary-color);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}