/* Custom Styles and Overrides */

/* Custom Color Scheme */
:root {
    --primary-gradient: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

/* Typography Enhancements */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lead {
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Enhanced Card Styling */
.card {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-img-top {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-main .card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* Navigation Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Badge Improvements */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
    border: none;
}

/* Button Enhancements */
.btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--border-radius-sm);
    border-width: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    text-shadow: var(--text-shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004c99 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Article Card Hover Effects */
.article-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
    z-index: 1;
}

.article-card:hover::before {
    left: 100%;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Overlay Effects */
.position-relative .badge {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 102, 204, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Share Enhancement */
.social-share .btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-share .btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Pagination Style */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.625rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination .page-link:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d1117 100%) !important;
}

footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer .social-links a:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

/* Ad Space Styling */
.ad-space {
    border-radius: var(--border-radius-md);
    border: 2px dashed var(--border-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
}

.ad-space:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Trending Section */
.card-header.bg-primary {
    background: var(--primary-gradient) !important;
    border: none;
    font-weight: 600;
}

/* Category Header */
.category-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Breadcrumb Enhancement */
.breadcrumb {
    background: rgba(0, 102, 204, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.breadcrumb-item a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #004c99;
    text-decoration: none;
}

/* Error Page Styling */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

/* Responsive Text Scaling */
@media (max-width: 768px) {
    :root {
        --border-radius-lg: 12px;
        --border-radius-md: 8px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .social-share .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        margin: 0.125rem;
    }
}

@media (min-width: 768px) { /* 768px ve üstü: tablet ve desktop */
    .navbar-brand{
        padding-right: 100px;
    }
}


/* Accessibility Improvements */
.btn:focus,
.nav-link:focus,
.page-link:focus {
    outline: 3px solid rgba(0, 102, 204, 0.3);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn-outline-primary {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.featured-image {
	min-width : 100%;
}
