/**
 * Modern Services & Blog Sections - 2026 UX/UI
 * Popular Services ve Blog Area için modern görünüm
 *
 * Kullanım: HTML'e ekle:
 * <link rel="stylesheet" href="assets/css/services-blog-modern-2026.css">
 */

/* ============================================
   PART 1: POPULAR SERVICES - Modern Cards
   ============================================ */

.popular-services-area {
    padding-bottom: 50px;
}

/* Başlık Bölümü - Modern Typography */
.area-title-blue {
    margin-bottom: 48px;
}

.area-title-blue span {
    display: inline-block;
    color: #1E969C;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding: 6px 18px;
    background: rgba(30, 150, 156, 0.1);
    border-radius: 20px;
}

.area-title-blue h1 {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
    display: inline-block;
}

.area-title-blue h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1E969C 0%, #00B22D 100%);
    border-radius: 2px;
}

/* Service Cards - Image Overlay Design */
.p-services-wrapper {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
}

.p-services-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(30, 150, 156, 0.2);
}

.p-services-img {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.p-services-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.p-services-wrapper:hover .p-services-img img {
    transform: scale(1.1);
}

/* Gradient Overlay */
.p-services-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(30, 150, 156, 0.9) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}

.p-services-wrapper:hover .p-services-img::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(30, 150, 156, 0.85) 60%,
        rgba(0, 178, 45, 0.95) 100%
    );
}

/* Text Content Overlay */
.p-services-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px;
    z-index: 2;
    transform: translateY(60px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-services-wrapper:hover .p-services-text {
    transform: translateY(0);
}

/* Icon */
.p-services-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.p-services-wrapper:hover .p-services-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(5deg);
}

.p-services-icon i {
    font-size: 24px;
    color: #ffffff;
}

/* Başlık */
.p-services-text h4 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
    opacity: 1;
}

/* Açıklama */
.p-services-text p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.p-services-wrapper:hover .p-services-text p {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Link */
.p-services-text a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.p-services-wrapper:hover .p-services-text a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.p-services-text a:hover {
    background: rgba(255, 255, 255, 1);
    color: #1E969C;
    transform: translateY(0) translateX(4px);
}

.p-services-text a i {
    transition: transform 0.3s ease;
}

.p-services-text a:hover i {
    transform: translateX(4px);
}

/* ============================================
   PART 2: BLOG AREA - Modern Grid
   ============================================ */

.blog-area {
    padding-top: 50px;
    padding-bottom: 50px;
    background: #f8f9fa;
}

/* Sol Kolon - Intro Card */
.single-blog {
    height: 100%;
}

.single-blog .we-are-text {
    background: linear-gradient(135deg, #1E969C 0%, #00B22D 100%);
    padding: 48px 36px;
    border-radius: 20px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(30, 150, 156, 0.25);
    position: relative;
    overflow: hidden;
}

/* Dekoratif pattern */
.single-blog .we-are-text::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.single-blog .we-are-text span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.single-blog .we-are-text h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.single-blog .we-are-text p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 28px 0;
}

.single-blog .we-are-text .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1E969C;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.single-blog .we-are-text .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.single-blog .we-are-text .btn i {
    transition: transform 0.3s ease;
}

.single-blog .we-are-text .btn:hover i {
    transform: translateX(4px);
}

/* Blog Cards - Modern Design */
.blog-wrapper {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.blog-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* Blog Image */
.blog-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-wrapper:hover .blog-img::before {
    opacity: 1;
}

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

.blog-wrapper:hover .blog-img img {
    transform: scale(1.08);
}

/* Blog Text */
.blog-text {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-text h4 {
    margin: 0 0 14px 0;
}

.blog-text h4 a {
    color: #2d3748;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-text h4 a:hover {
    color: #1E969C;
}

.blog-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #718096;
    margin: 0 0 20px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog CTA */
.blog-text .btn-border {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1E969C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #1E969C;
    border-radius: 10px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-text .btn-border:hover {
    background: #1E969C;
    color: #ffffff;
    transform: translateX(4px);
}

.blog-text .btn-border i {
    transition: transform 0.3s ease;
}

.blog-text .btn-border:hover i {
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE - Mobil Optimizasyon
   ============================================ */

@media (max-width: 1199px) {
    .area-title-blue h1 {
        font-size: 32px;
    }

    .p-services-wrapper {
        height: 380px;
    }

    .single-blog .we-are-text h1 {
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .area-title-blue h1 {
        font-size: 28px;
    }

    .p-services-wrapper {
        height: 360px;
    }

    .blog-img {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .area-title-blue {
        padding: 0 20px !important;
        margin-bottom: 32px;
    }

    .area-title-blue h1 {
        font-size: 24px;
    }

    .p-services-wrapper {
        height: auto;
        min-height: 380px;
    }

    /* Mobilde içerik her zaman görünür - hover yok */
    .p-services-text {
        transform: translateY(0) !important;
        position: relative;
        padding: 28px 24px;
    }

    .p-services-text p,
    .p-services-text a {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Mobilde gradient daha subtle olsun */
    .p-services-img::before {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(30, 150, 156, 0.85) 100%
        ) !important;
    }

    .single-blog .we-are-text {
        padding: 36px 28px;
    }

    .blog-img {
        height: 200px;
    }
}

@media (max-width: 575px) {
    .p-services-wrapper {
        min-height: 360px;
    }

    .p-services-text {
        padding: 24px 20px;
    }

    .p-services-text h4 {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .p-services-text p {
        font-size: 13px;
        margin-bottom: 16px;
        -webkit-line-clamp: 3;
    }

    .p-services-text a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .single-blog .we-are-text h1 {
        font-size: 24px;
    }

    .blog-text {
        padding: 24px 20px;
    }

    .blog-text h4 a {
        font-size: 18px;
    }
}
