/* =============================================
   Blog - Page Specific Styles
   ============================================= */

/* Blog Wrapper */
.blog-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Kategori Tab - Slider Container */
.ablogdiv {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Kategori Scroll Wrapper */
.kategori-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}
.kategori-scroll-wrapper::-webkit-scrollbar {
    display: none;
}
.kategori-scroll-wrapper ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

/* Kategori Nav Butonlari */
.kategori-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,78,42,0.6);
    background: rgba(255,78,42,0.15);
    color: #FF4E2A;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.kategori-nav:hover {
    background: #FF4E2A;
    border-color: #FF4E2A;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,78,42,0.4);
}
[data-theme="light"] .kategori-nav {
    border-color: rgba(255,78,42,0.5);
    background: rgba(255,78,42,0.1);
    color: #FF4E2A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
[data-theme="light"] .kategori-nav:hover {
    border-color: #FF4E2A;
    background: #FF4E2A;
    color: #fff;
}

/* Kategori Tab - Active durumu */
.ablogdiv .kategori-scroll-wrapper ul li.active {
    background: linear-gradient(to right, #ed593a, #2c3e50);
}
.ablogdiv .kategori-scroll-wrapper ul li.active a {
    color: #fff;
}

/* Mobil Kategori Dropdown */
.blog-kategori-mobil {
    display: none;
    margin-bottom: 20px;
}
.blog-kategori-mobil select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: var(--bg, #001F30);
    color: var(--text, #e2e8f0);
    font-size: 15px;
    appearance: auto;
}
.blog-kategori-mobil select option {
    background: #0a1628;
    color: #e2e8f0;
}
[data-theme="light"] .blog-kategori-mobil select {
    border-color: rgba(0,0,0,0.15);
    background: #fff;
    color: #1a1a2e;
}
[data-theme="light"] .blog-kategori-mobil select option {
    background: #fff;
    color: #1a1a2e;
}

@media (max-width: 768px) {
    .ablogdiv {
        display: none !important;
    }
    .blog-kategori-mobil {
        display: block;
    }
}

/* Blog Cards Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.blog-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Blog Card Image */
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.blog-card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,31,48,0.8), rgba(0,31,48,0.6));
    color: rgba(255,255,255,0.3);
    font-size: 48px;
}

/* Card Body */
.blog-card-body {
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,31,48,0.9), rgba(0,31,48,1));
}

/* Card Meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.blog-card-kategori {
    padding: 4px 10px;
    background: rgba(255,78,42,0.2);
    border-radius: 20px;
    color: #FF4E2A;
    font-weight: 500;
}

.blog-card-date {
    color: #97BED1;
}

/* Card Title */
.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Text */
.blog-card-text {
    font-size: 14px;
    color: #97BED1;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a {
    background: rgba(0,31,48,0.6);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.2);
}

.blog-pagination a:hover {
    background: rgba(255,78,42,0.2);
    border-color: rgba(255,78,42,0.4);
    color: #FF4E2A;
}

.blog-pagination .active {
    background: linear-gradient(135deg, #FF4E2A, #ff6b47);
    color: #fff;
    border: none;
    font-weight: 600;
}

.blog-pagination .disabled {
    background: rgba(0,31,48,0.3);
    color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: not-allowed;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text);
}

.blog-empty i {
    font-size: 64px;
    color: var(--primary, #FF4E2A);
    margin-bottom: 20px;
    opacity: 0.6;
}

.blog-empty h4 {
    font-size: 24px;
    margin-bottom: 12px;
}

.blog-empty p {
    opacity: 0.7;
    margin-bottom: 20px;
}

.blog-empty a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF4E2A, #ff6b47);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.blog-empty a:hover {
    transform: translateY(-2px);
}

/* Page Title Style */
.paketlerdiv .imgdivtitlee h3 {
    color: var(--imgdivtitlee, #FF4E2A);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-wrap {
        padding: 20px 15px;
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
