/* Custom CSS for İBB Metro News */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-size: 1.5rem;
}

.card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
}

/* Footer */
footer {
    margin-top: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Deneme sayfası özel stilleri */
#demo-area {
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
}

#demo-text {
    margin: 0;
    transition: all 0.3s ease;
}

#api-response {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.test-button {
    margin: 2px;
    transition: transform 0.2s ease;
}

.test-button:hover {
    transform: scale(1.05);
}

/* Form validation styles */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 8px;
}

/* Pagination */
.pagination .page-link {
    border: none;
    margin: 0 2px;
    border-radius: 6px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
}
