/**
 * @file blog.css
 * @description Blog bölümü stilleri - Modern, kompakt ve çekici tasarım
 * @author Erdinç Taze
 * @copyright 
 */

/* ========== RENK PALETİ ========== */
:root {
    --primary-green: #28a745;
    --primary-green-dark: #218838;
    --primary-green-light: #34ce57;
    --accent-green: #20c997;
    --accent-green-dark: #1ba085;
    --light-green: #d4edda;
    --very-light-green: #f8fffe;
    --success-green: #155724;
    --gradient-green: linear-gradient(135deg, #28a745, #20c997);
    --gradient-green-light: linear-gradient(135deg, #d4edda, #f8fffe);
}

/* ========== BLOG BÖLÜMÜ GENEL STİLLER ========== */
.blog-section {
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}


.blog-section .container {
    position: relative;
    z-index: 2;
}

/* ========== SECTION HEADER ========== */
.blog-section-header {
    margin-bottom: 50px;
}

.blog-section-header .wt-small-separator {
    margin-bottom: 15px;
}

.blog-section-header .wt-small-separator div {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.blog-section-header .wt-small-separator div::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-green);
    border-radius: 1px;
}

.blog-section-header .wt-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--success-green);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-section-header .section-description {
    font-size: 16px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========== BLOG GRID ========== */
.blog-grid {
    margin-top: 50px;
    position: relative;
    z-index: 3;
}

/* ========== BLOG CARD STİLLERİ ========== */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.12);
}

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

/* ========== BLOG CARD IMAGE ========== */
.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(40, 167, 69, 0.06);
}

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

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

/* Blog Card Overlay */
.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.btn-read-blog {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-green);
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn-read-blog:hover {
    background: #ffffff;
    color: var(--primary-green-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Blog Category Badge */
.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: var(--primary-green);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.blog-category.popular {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    animation: popularPulse 2s ease-in-out infinite;
}

.blog-category.trending {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    animation: trendingPulse 2.5s ease-in-out infinite;
}

/* ========== BLOG CARD CONTENT ========== */
.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-date,
.blog-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--success-green);
    background: rgba(40, 167, 69, 0.08);
    padding: 6px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.blog-date:hover,
.blog-author:hover {
    background: rgba(40, 167, 69, 0.12);
    transform: translateY(-1px);
}

.blog-date i,
.blog-author i {
    color: var(--primary-green);
    font-size: 11px;
}

/* Blog Title */
.blog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* Blog Excerpt */
.blog-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== BLOG FOOTER ========== */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(40, 167, 69, 0.1);
    margin-top: auto;
}

/* Blog Stats */
.blog-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
}

.blog-views,
.blog-comments {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-views:hover,
.blog-comments:hover {
    color: var(--primary-green);
    transform: translateY(-1px);
}

.blog-views i,
.blog-comments i {
    color: var(--primary-green);
    font-size: 11px;
}

/* Read More Button */
.blog-footer .btn-read-more {
    background: var(--gradient-green) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3) !important;
    line-height: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}

.blog-footer .btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.blog-footer .btn-read-more:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.blog-footer .btn-read-more:hover::before {
    left: 100%;
}

.blog-footer .btn-read-more i {
    font-size: 11px !important;
    transition: transform 0.3s ease !important;
}

.blog-footer .btn-read-more:hover i {
    transform: translateX(3px) !important;
}

/* ========== BLOG CTA WRAPPER ========== */
.blog-cta-wrapper {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    position: relative;
}

.blog-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: var(--gradient-green);
    color: #ffffff;
    text-decoration: none;
    border-radius: 35px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-width: 250px;
    justify-content: center;
}

.blog-main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.blog-main-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.35);
    color: #ffffff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-main-btn:hover::before {
    left: 100%;
}

.blog-main-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.blog-main-btn:hover .btn-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(10deg);
}

.blog-main-btn .btn-text {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.blog-main-btn:hover .btn-text {
    letter-spacing: 0.5px;
}

.blog-main-btn .btn-arrow {
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.blog-main-btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* ========== JAVASCRIPT İLE KULLANILAN ANİMASYON SINIFLAR ========== */

/* Zoom Effect */
.zoom-effect {
    transform: scale(1.1) !important;
}

/* Highlight Effect */
.highlight {
    color: var(--primary-green) !important;
    background: rgba(40, 167, 69, 0.15) !important;
}

/* Glow Effect */
.glow-effect {
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.6) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulseEffect 1.5s ease-in-out;
}

@keyframes pulseEffect {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Bounce Animation */
.bounce-animation {
    animation: bounceEffect 0.6s ease-in-out;
}

@keyframes bounceEffect {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(-4px);
    }
}

/* Arrow Move Animation */
.animate-arrow {
    animation: arrowMove 0.6s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

/* Ripple Effect */
.blog-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.3);
    transform: scale(0);
    pointer-events: none;
    z-index: 1;
}

.blog-ripple.animate {
    animation: blogRippleEffect 0.6s linear;
}

@keyframes blogRippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Fade In Animation */
.fade-in {
    animation: fadeInImage 0.5s ease-in-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Keyboard Focus */
.keyboard-focus {
    outline: 3px solid var(--primary-green) !important;
    outline-offset: 2px !important;
}

/* Loading State */
.loaded {
    opacity: 1;
}

/* ========== ANİMASYONLAR ========== */
@keyframes blogBgFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15px, -10px) scale(1.05);
    }
    66% {
        transform: translate(-10px, 8px) scale(0.95);
    }
}

@keyframes popularPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    }
}

@keyframes trendingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.5);
    }
}

/* Blog kart animasyonları */
.blog-card.blog-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card.blog-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Kart giriş animasyonu */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MOBİL SLIDER STİLLERİ ========== */

/* Mobil ipucu mesajı */
.blog-mobile-hint {
    text-align: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--very-light-green), var(--light-green));
    border-radius: 25px;
    margin-bottom: 25px;
    color: var(--success-green);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(40, 167, 69, 0.1);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.blog-mobile-hint i {
    margin-right: 8px;
    color: var(--primary-green);
    animation: swipeAnimation 2s ease-in-out infinite;
}

@keyframes swipeAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Mobil slider container */
.blog-mobile-slider {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.blog-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 25px;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}

.blog-slider-container::-webkit-scrollbar {
    height: 4px;
}

.blog-slider-container::-webkit-scrollbar-track {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 2px;
}

.blog-slider-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 2px;
}

.blog-slider-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* Slide item */
.blog-slide-item {
    flex: 0 0 270px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Son slide item için extra padding */
.blog-slide-item:last-child {
    margin-right: 25px;
}

/* Mobil blog kartları */
.blog-card-mobile {
    max-width: 100%;
    margin-bottom: 0;
}

.blog-card-mobile .blog-card-image {
    height: 160px;
}

.blog-card-mobile .blog-card-content {
    padding: 18px;
}

.blog-card-mobile .blog-title {
    font-size: 15px;
    min-height: 40px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card-mobile .blog-excerpt {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-mobile .blog-meta {
    margin-bottom: 12px;
}

.blog-card-mobile .blog-date {
    font-size: 11px;
    padding: 4px 8px;
}

.blog-card-mobile .blog-footer {
    padding-top: 12px;
    margin-top: 12px;
}

.blog-card-mobile .blog-stats {
    font-size: 11px;
}

.blog-card-mobile .btn-read-more {
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-radius: 15px !important;
}

.blog-card-mobile .blog-category {
    padding: 4px 8px;
    font-size: 10px;
    top: 10px;
    right: 10px;
}

/* ========== RESPONSİVE TASARIM ========== */
@media (max-width: 1200px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 992px) {
    .blog-section {
        padding: 50px 0;
    }
    
    .blog-section-header .wt-title {
        font-size: 28px;
    }
    
    .blog-grid {
        margin-top: 40px;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 16px;
        min-height: 45px;
    }
    
    .blog-cta-wrapper {
        margin-top: 40px;
        padding: 25px 0;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-section-header .wt-title {
        font-size: 26px;
    }
    
    .blog-section-header .section-description {
        font-size: 15px;
    }
    
    .blog-grid {
        margin-top: 35px;
    }
    
    .blog-card-image {
        height: 160px;
    }
    
    .blog-category {
        padding: 4px 8px;
        font-size: 10px;
        top: 12px;
        right: 12px;
    }
    
    .blog-card-content {
        padding: 18px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .blog-title {
        font-size: 15px;
        min-height: 40px;
        margin-bottom: 10px;
    }
    
    .blog-excerpt {
        font-size: 13px;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding-top: 12px;
    }
    
    .blog-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .blog-footer .btn-read-more {
        align-self: flex-end;
        padding: 6px 12px !important;
        font-size: 11px !important;
        border-radius: 15px !important;
    }
    
    .blog-main-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 220px;
        gap: 10px;
    }
    
    .blog-main-btn .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .blog-section {
        padding: 35px 0;
    }
    
    /* Çok küçük ekranlar için slider optimizasyonu */
    .blog-slide-item {
        flex: 0 0 250px;
    }
    
    .blog-slide-item:last-child {
        margin-right: 25px;
    }
    
    .blog-card-mobile .blog-card-image {
        height: 140px;
    }
    
    .blog-card-mobile .blog-card-content {
        padding: 15px;
    }
    
    .blog-card-mobile .blog-title {
        font-size: 14px;
        min-height: 35px;
    }
    
    .blog-card-mobile .blog-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .blog-card-mobile .blog-footer .btn-read-more {
        padding: 5px 10px !important;
        font-size: 10px !important;
        border-radius: 12px !important;
    }
    
    .blog-card-mobile .blog-category {
        padding: 3px 6px;
        font-size: 9px;
        top: 8px;
        right: 8px;
    }
    
    .blog-mobile-hint {
        padding: 12px 16px;
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .blog-main-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 200px;
        gap: 8px;
    }
    
    .blog-main-btn .btn-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

/* ========== ACCESSIBILITY ========== */
.blog-card:focus,
.btn-read-blog:focus,
.blog-footer .btn-read-more:focus,
.blog-main-btn:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* ========== LOADING STATES ========== */
.blog-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.blog-card.loading .blog-card-content {
    background: linear-gradient(90deg, var(--light-green) 25%, var(--very-light-green) 50%, var(--light-green) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ========== TOUCH OPTIMIZATIONS ========== */
.blog-card.touch-active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
}

.btn-read-blog.touch-active,
.blog-footer .btn-read-more.touch-active,
.blog-main-btn.touch-active {
    transform: scale(0.95) !important;
}

/* ========== HOVER EFEKTLERİ İYİLEŞTİRMESİ ========== */
.blog-card:hover .blog-meta span {
    color: var(--primary-green);
}

.blog-card:hover .blog-excerpt {
    color: #555555;
}

.blog-card:hover .blog-stats span {
    color: var(--primary-green);
}

/* ========== DARK MODE UYUMLULUĞU ========== */
@media (prefers-color-scheme: dark) {
    .blog-card {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* ========== PRINT STİLLERİ ========== */
@media print {
    .blog-section {
        background: none;
    }
    
    .blog-card-overlay,
    .btn-read-blog,
    .blog-main-btn {
        display: none;
    }
    
    .blog-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

