/* Tech News CSS */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Ana İçerik */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Haber Kartları */
.news-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-card .card-title a {
    color: #333;
    text-decoration: none;
}

.news-card .card-title a:hover {
    color: var(--primary-color);
}

.news-card .card-text {
    flex-grow: 1;
    color: #666;
    font-size: 0.9rem;
}

.news-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.news-meta i {
    margin-right: 0.25rem;
}

/* Kategori Badge */
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Öne Çıkan Haber */
.featured-news {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.featured-news img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
}

.featured-overlay h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.featured-overlay a {
    color: white;
    text-decoration: none;
}

.featured-overlay a:hover {
    color: #ccc;
}

/* Sidebar */
.sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.sidebar h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.popular-news-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.popular-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.popular-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.popular-news-content h6 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.popular-news-content a {
    color: #333;
    text-decoration: none;
}

.popular-news-content a:hover {
    color: var(--primary-color);
}

.popular-news-content small {
    color: #888;
}

/* Sayfalama */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #212529 !important;
}

footer h5, footer h6 {
    color: var(--primary-color);
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .featured-overlay h2 {
        font-size: 1.5rem;
    }
    
    .news-card img {
        height: 150px;
    }
    
    .popular-news-item {
        flex-direction: column;
    }
    
    .popular-news-item img {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover Effects */
.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}