/*!
 * Diş Kliniği Scripti v1 - Blog Sayfası CSS
 * Modern ve sade tasarım
 */

/* Modern Hero Section */
.modern-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

/* Blog Detay Hero - Diğer sayfalarla tutarlı */
.blog-detail-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.modern-hero-content {
    position: relative;
    z-index: 2;
}

.modern-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modern-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
}

.modern-hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-blog-icon {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(0, 123, 255, 0.2),
        0 0 0 20px rgba(0, 123, 255, 0.1),
        0 0 0 40px rgba(0, 123, 255, 0.05);
    animation: pulse 4s ease-in-out infinite;
}

.modern-blog-icon i {
    font-size: 4rem;
    color: white;
}

.modern-hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.modern-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatParticle 6s ease-in-out infinite;
}

.modern-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.modern-particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: -1.5s;
}

.modern-particle:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: -3s;
}

.modern-particle:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: -4.5s;
}

.modern-particle:nth-child(5) {
    top: 80%;
    left: 30%;
    animation-delay: -2s;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 20px 40px rgba(0, 123, 255, 0.2),
            0 0 0 20px rgba(0, 123, 255, 0.1),
            0 0 0 40px rgba(0, 123, 255, 0.05);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 25px 50px rgba(0, 123, 255, 0.3),
            0 0 0 25px rgba(0, 123, 255, 0.15),
            0 0 0 50px rgba(0, 123, 255, 0.08);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.8;
    }
}

/* Blog Filters */
.blog-filters {
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-buttons .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: rgba(0, 123, 255, 0.2);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.blog-content {
    padding: 1.5rem;
}

/* Hero Buttons */
.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    border-radius: 15px;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Blog Meta */
.blog-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.blog-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta .meta-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-footer {
    margin-top: auto;
}

.blog-footer .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.blog-footer .btn:hover {
    transform: translateX(5px);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: rgba(0, 123, 255, 0.2);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
}

.widget-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Search Form */
.search-form .input-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.search-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.search-form .btn {
    border: none;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 0.9rem;
}

.category-list a:hover,
.category-list a.active {
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.category-list .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Recent Posts */
.recent-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post:hover {
    transform: translateX(5px);
}

.recent-post-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.recent-post:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.recent-post-content h6 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.recent-post-content a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post-content a:hover {
    color: var(--primary-color);
}

/* Newsletter Form */
.newsletter-form .input-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form .btn {
    border: none;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    border-radius: 10px;
    margin: 0 0.25rem;
    border: 1px solid rgba(0, 123, 255, 0.2);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

/* Empty State */
.text-center.py-5 {
    padding: 4rem 2rem;
}

.text-center.py-5 i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-center.py-5 h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.text-center.py-5 p {
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-hero {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .modern-hero-title {
        font-size: 2.5rem;
    }
    
    .modern-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .blog-meta .meta-item {
        gap: 0.25rem;
    }
    
    .modern-blog-icon {
        width: 150px;
        height: 150px;
    }
    
    .modern-blog-icon i {
        font-size: 3rem;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-buttons .btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .modern-hero-title {
        font-size: 2rem;
    }
    
    .modern-hero-subtitle {
        font-size: 1rem;
    }
    
    .modern-blog-icon {
        width: 120px;
        height: 120px;
    }
    
    .modern-blog-icon i {
        font-size: 2.5rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .recent-post {
        flex-direction: column;
        text-align: center;
    }
    
    .recent-post-image {
        width: 100%;
        height: 120px;
        margin-bottom: 0.5rem;
    }
}
