/* Özel Blog - Frontend Styles - Profesyonel ve Responsive */

.ob-section-wrapper {
    width: 100%;
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
}

.ob-section-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header */
.ob-section-header {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    text-align: center;
}

.ob-section-title {
    font-size: 48px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.2;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.ob-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
    border-radius: 2px;
}

.ob-section-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 30px auto 0;
}

/* Blogs Grid */
.ob-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Blog Card */
.ob-blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Simple, clean link styling - no pointer-events restrictions */
.ob-blog-card {
    position: relative;
}

.ob-blog-card .ob-blog-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

.ob-blog-link:hover {
    text-decoration: none;
}

/* Elementor compatibility */
.elementor-widget .ob-blog-card {
    cursor: pointer;
}

.elementor-widget .ob-blog-link {
    cursor: pointer;
}

.ob-blog-card:nth-child(1) { animation-delay: 0.1s; }
.ob-blog-card:nth-child(2) { animation-delay: 0.2s; }
.ob-blog-card:nth-child(3) { animation-delay: 0.3s; }
.ob-blog-card:nth-child(4) { animation-delay: 0.4s; }
.ob-blog-card:nth-child(5) { animation-delay: 0.5s; }
.ob-blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.ob-blog-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.25);
    border-color: rgba(46, 125, 50, 0.2);
}

.ob-blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 100;
    cursor: pointer;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

.ob-blog-link:focus {
    outline: 2px solid #2e7d32;
    outline-offset: 2px;
}

.ob-blog-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    height: 280px;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
}

.ob-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ob-blog-card:hover .ob-blog-image img {
    transform: scale(1.15) rotate(2deg);
}

.ob-blog-card:hover .ob-blog-overlay {
    opacity: 1;
}

.ob-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
}

.ob-placeholder-icon {
    font-size: 64px;
    opacity: 0.3;
}

.ob-blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.ob-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ob-blog-category {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.ob-blog-card:hover .ob-blog-category {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.ob-blog-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 15px 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ob-blog-card:hover .ob-blog-title {
    color: #2e7d32;
}

.ob-blog-description {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ob-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ob-blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.ob-blog-date svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.ob-blog-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
    pointer-events: none;
}

.ob-blog-read-more .ob-arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 18px;
}

.ob-blog-card:hover .ob-blog-read-more {
    color: #1b5e20;
}

.ob-blog-card:hover .ob-blog-read-more .ob-arrow {
    transform: translateX(8px);
}

/* Load More Button */
.ob-load-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.ob-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ob-load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ob-load-more-btn:hover::before {
    width: 400px;
    height: 400px;
}

.ob-load-more-btn:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
    color: #ffffff;
}

.ob-load-more-btn:active {
    transform: translateY(-2px);
}

.ob-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.ob-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .ob-section-wrapper {
        padding: 60px 20px;
    }
    
    .ob-section-title {
        font-size: 42px;
    }
    
    .ob-section-description {
        font-size: 17px;
    }
    
    .ob-blogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .ob-blog-image {
        height: 250px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .ob-section-wrapper {
        padding: 50px 15px;
    }
    
    .ob-section-header {
        margin-bottom: 40px;
    }
    
    .ob-section-title {
        font-size: 36px;
    }
    
    .ob-section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .ob-section-description {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .ob-blogs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .ob-blog-card {
        border-radius: 16px;
    }
    
    .ob-blog-image {
        height: 240px;
        border-radius: 16px 16px 0 0;
    }
    
    .ob-blog-content {
        padding: 25px;
    }
    
    .ob-blog-title {
        font-size: 20px;
    }
    
    .ob-blog-description {
        font-size: 14px;
    }
    
    .ob-load-more-btn {
        padding: 16px 35px;
        font-size: 14px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .ob-section-wrapper {
        padding: 40px 10px;
    }
    
    .ob-section-header {
        margin-bottom: 30px;
    }
    
    .ob-section-title {
        font-size: 28px;
    }
    
    .ob-section-description {
        font-size: 15px;
    }
    
    .ob-blog-image {
        height: 200px;
    }
    
    .ob-blog-content {
        padding: 20px;
    }
    
    .ob-blog-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .ob-blog-description {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .ob-blog-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 15px;
    }
    
    .ob-blog-date {
        font-size: 12px;
    }
    
    .ob-blog-read-more {
        font-size: 13px;
    }
    
    .ob-load-more-btn {
        padding: 14px 30px;
        font-size: 13px;
        width: 100%;
        max-width: 300px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .ob-section-title {
        font-size: 24px;
    }
    
    .ob-blogs-grid {
        gap: 20px;
    }
    
    .ob-blog-image {
        height: 180px;
    }
}

/* Print Styles */
@media print {
    .ob-section-wrapper {
        padding: 20px;
    }
    
    .ob-blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .ob-load-more-wrapper {
        display: none;
    }
}
