/* ====================================================================
   BERPLUS BLOG STYLES
   Template Uyumlu CSS Organizasyonu
   ==================================================================== */

/* ====================================================================
   1. PRELOADER & COMMON
   ==================================================================== */
.handle-preloader {
    background-color: #57C2FF !important;
}

/* ====================================================================
   2. PAGE HEADER
   ==================================================================== */
.blog-page-header {
    position: relative;
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    overflow: hidden;
}

.blog-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    z-index: 0;
}

.blog-page-header__inner {
    position: relative;
    z-index: 2;
}

.blog-page-header h1,
.blog-page-header h2 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* ====================================================================
   3. BLOG SECTION
   ==================================================================== */
.blog-section {
    padding: 100px 0;
    background: #f8f9fa;
}

/* ====================================================================
   4. BLOG CARD
   ==================================================================== */
.blog-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

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

.blog-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #57C2FF;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.blog-card-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.blog-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 14px;
    flex-wrap: wrap;
}

.blog-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta-item i {
    color: #57C2FF;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #57C2FF;
}

.blog-card-excerpt {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
    font-size: 14px;
}

.blog-card-read-more {
    color: #57C2FF;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.blog-card-read-more:hover {
    color: #2c3e50;
    gap: 10px;
}

/* ====================================================================
   5. SIDEBAR
   ==================================================================== */
.blog-sidebar {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #57C2FF;
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    margin-bottom: 12px;
}

.sidebar-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-category-list li a:hover {
    background: #57C2FF;
    color: #ffffff;
}

.sidebar-category-list li a .count {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-category-list li a:hover .count {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.sidebar-post-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content {
    flex-grow: 1;
}

.sidebar-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.sidebar-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-post-title a:hover {
    color: #57C2FF;
}

.sidebar-post-meta {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ====================================================================
   6. SEARCH BOX
   ==================================================================== */
.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #57C2FF;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #57C2FF;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #2c3e50;
}

/* ====================================================================
   7. ARTICLE DETAIL
   ==================================================================== */
.article-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 60px 0 40px;
    color: #ffffff;
}

.article-category {
    display: inline-block;
    background: #57C2FF;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-item i {
    color: #57C2FF;
}

.article-section {
    padding: 60px 0;
    background: #ffffff;
}

.article-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 17px;
    line-height: 1.9;
    color: #2c3e50;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin: 35px 0 18px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

/* ====================================================================
   8. SHARE BUTTONS
   ==================================================================== */
.share-buttons {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.share-buttons h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.share-button-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

.share-whatsapp {
    background: #25d366;
}

/* ====================================================================
   9. RESPONSIVE
   ==================================================================== */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .blog-page-header h1,
    .blog-page-header h2 {
        font-size: 32px;
    }
    
    .blog-card-image {
        height: 220px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-sidebar {
        padding: 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
}
