/**
 * Modern Features Section - 2026 UX/UI
 * Ana sayfadaki feature cards için modern görünüm
 *
 * Kullanım: HTML'e ekle:
 * <link rel="stylesheet" href="assets/css/features-modern-2026.css">
 */

/* ============================================
   1. FEATURES AREA - Container
   ============================================ */

.feature-area {
    padding-bottom: 75px;
}

.features-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Dekoratif background pattern */
.features-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 150, 156, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 178, 45, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================
   2. FEATURE CARDS - Modern Card Design
   ============================================ */

.single-features {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-text {
    background: #ffffff;
    padding: 36px 28px;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover gradient overlay */
.feature-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E969C 0%, #00B22D 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.single-features:hover .feature-text::before {
    transform: scaleX(1);
}

.single-features:hover .feature-text {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(30, 150, 156, 0.15);
    border-color: rgba(30, 150, 156, 0.1);
}

/* ============================================
   3. BAŞLIK - Modern Typography
   ============================================ */

.feature-text h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.single-features:hover .feature-text h4 {
    color: #1E969C;
}

/* İkon eklemek isterseniz (opsiyonel) */
.feature-text h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #1E969C 0%, #00B22D 100%);
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.single-features:hover .feature-text h4::before {
    transform: scale(1.3);
}

/* ============================================
   4. AÇIKLAMA METNİ - Readable Typography
   ============================================ */

.feature-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 24px 0;
    flex: 1;
}

/* ============================================
   5. CTA BUTTON - Modern Button Design
   ============================================ */

.feature-text a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    color: #2d3748;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

/* Hover gradient background */
.feature-text a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1E969C 0%, #00B22D 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-text a:hover::before {
    opacity: 1;
}

/* Text ve icon z-index */
.feature-text a span,
.feature-text a i {
    position: relative;
    z-index: 1;
}

.feature-text a:hover {
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(30, 150, 156, 0.25);
    border-color: rgba(30, 150, 156, 0.3);
}

/* Icon animation */
.feature-text a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

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

/* ============================================
   6. RESPONSIVE - Mobil Optimizasyon
   ============================================ */

@media (max-width: 1199px) {
    .features-bg {
        padding: 40px 24px;
    }

    .feature-text {
        padding: 28px 24px;
    }

    .feature-text h4 {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .features-bg {
        border-radius: 20px;
        padding: 32px 20px;
    }

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

    .feature-text h4 {
        font-size: 19px;
        margin-bottom: 14px;
    }

    .feature-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .features-bg {
        border-radius: 16px;
        padding: 24px 16px;
    }

    .feature-text {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .feature-text h4::before {
        width: 6px;
        height: 6px;
        margin-right: 10px;
    }

    .feature-text a {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .single-features {
        margin-bottom: 20px;
    }

    .feature-text {
        padding: 20px 18px;
    }

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

/* ============================================
   7. ACCESSIBILITY - Fokus Stilleri
   ============================================ */

.feature-text a:focus {
    outline: 3px solid rgba(30, 150, 156, 0.4);
    outline-offset: 2px;
}

/* ============================================
   8. DARK MODE (Opsiyonel)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .features-bg {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .feature-text {
        background: #2d3748;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .feature-text h4 {
        color: #f7fafc;
    }

    .feature-text p {
        color: #cbd5e0;
    }

    .feature-text a {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        color: #e2e8f0;
    }
}

/* ============================================
   9. ANIMASYON İYİLEŞTİRMELERİ
   ============================================ */

/* WOW.js animasyonları için smooth geçişler */
.single-features.wow {
    visibility: hidden;
}

.single-features.wow.animated {
    visibility: visible;
}

/* Staggered animation effect */
.single-features:nth-child(1) {
    transition-delay: 0s;
}

.single-features:nth-child(2) {
    transition-delay: 0.1s;
}

.single-features:nth-child(3) {
    transition-delay: 0.2s;
}
