/**
 * Bizimerdemli.com.tr - Custom Styles
 * Modern, responsive ve SEO-friendly tasarım
 */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --danger-color: #dc3545;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
}

a {
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Header */
.header {
    background: #fff;
}

.logo {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.search-form .form-control {
    border-radius: 25px 0 0 25px;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.urgent-ticker {
    max-width: 400px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* Cards */
.card {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* News Detail */
.news-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: var(--light-color);
    padding: 20px;
    border-radius: 5px;
}

.news-content ul,
.news-content ol {
    margin-left: 30px;
    margin-bottom: 1.5rem;
}

.news-content li {
    margin-bottom: 10px;
}

/* Social Share Buttons */
.social-share .btn {
    transition: all 0.3s ease;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Comments */
.comment-item {
    transition: background 0.3s ease;
}

.comment-item:hover {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin-left: -15px;
    margin-right: -15px;
}

.comment-avatar {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Sidebar */
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    margin-top: 60px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.footer h5,
.footer h6 {
    color: #fff;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    padding-left: 5px;
}

/* Scroll to Top Button */
#scrollToTop {
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: translateY(-5px);
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 3px;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination .active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light-color);
    padding: 10px 15px;
    border-radius: 5px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .news-content {
        font-size: 16px;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .urgent-ticker {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 12px;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .ad-space {
        height: auto !important;
        min-height: 100px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Print Styles */
@media print {
    .top-bar,
    .header,
    .navbar,
    .social-share,
    .comment-form,
    .sidebar,
    .footer,
    #scrollToTop,
    .ad-space {
        display: none !important;
    }
    
    .news-content {
        font-size: 14px;
    }
}
/* Haber İçerik Stili */
.news-content .content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.news-content .content-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-content .content-text h1,
.news-content .content-text h2,
.news-content .content-text h3,
.news-content .content-text h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212529;
}

.news-content .content-text h1 {
    font-size: 2rem;
}

.news-content .content-text h2 {
    font-size: 1.75rem;
}

.news-content .content-text h3 {
    font-size: 1.5rem;
}

.news-content .content-text h4 {
    font-size: 1.25rem;
}

.news-content .content-text ul,
.news-content .content-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-content .content-text li {
    margin-bottom: 0.5rem;
}

.news-content .content-text blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.news-content .content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.news-content .content-text table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.news-content .content-text table th,
.news-content .content-text table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.news-content .content-text table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.news-content .content-text a {
    color: #0d6efd;
    text-decoration: underline;
}

.news-content .content-text a:hover {
    color: #0a58ca;
}

/* İlk paragraf büyük */
.news-content .content-text p:first-of-type {
    font-size: 1.25rem;
    font-weight: 500;
    color: #495057;
}

/* Drop cap (İlk harf büyük) - opsiyonel */
.news-content .content-text p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    float: left;
    margin-right: 0.1em;
    color: #0d6efd;
}