﻿/* ================================
   HOME PAGE STYLES
   Ana sayfa özel bileşenleri
   ================================ */

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 600px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.3;
    }

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-white);
    padding: var(--spacing-2xl) 0;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--text-white); 
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: var(--spacing-md);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease 0.2s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-description {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--font-size-4xl);
    }
}

.section-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* Her zaman 2 sütun */
    }
}

/* ===== PRODUCTS SECTION ===== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Her zaman 2 sütun */
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* Her zaman 2 sütun */
    }
}
.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--primary-green-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-green-dark);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--primary-green);
    color: var(--text-white);
    transform: rotate(10deg) scale(1.1);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== SERVICES SECTION ===== */
/* ===== SERVICES SECTION ===== */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

    .services-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
        border-radius: 50%;
    }

    .services-section::after {
        content: '';
        position: absolute;
        bottom: -50%;
        left: -10%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
        border-radius: 50%;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(to right, transparent, var(--primary-green), transparent);
        opacity: 0;
        transition: opacity var(--transition-normal);
    }

    .service-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
    }

        .service-card:hover::before {
            opacity: 1;
        }

/* Service Icon Wrapper */
.service-icon-wrapper {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
    position: relative;
    text-align: center;
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-white);
    position: relative;
    transition: var(--transition-normal);
}

    .service-icon::before {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        opacity: 0.3;
        transition: var(--transition-normal);
    }

    /* Çiçekçilik - Pembe/Mor gradient */
    .service-icon.cicekcilik {
        background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
        box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
    }

        .service-icon.cicekcilik::before {
            background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
        }

.service-card:hover .service-icon.cicekcilik {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

/* Fidancılık - Yeşil gradient */
.service-icon.fidancilik {
    background: linear-gradient(135deg, #56AB2F 0%, #A8E063 100%);
    box-shadow: 0 10px 30px rgba(86, 171, 47, 0.3);
}

    .service-icon.fidancilik::before {
        background: linear-gradient(135deg, #56AB2F 0%, #A8E063 100%);
    }

.service-card:hover .service-icon.fidancilik {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(86, 171, 47, 0.5);
}

/* Peyzaj - Mavi/Turkuaz gradient */
.service-icon.peyzaj {
    background: linear-gradient(135deg, #11998E 0%, #38EF7D 100%);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.3);
}

    .service-icon.peyzaj::before {
        background: linear-gradient(135deg, #11998E 0%, #38EF7D 100%);
    }

.service-card:hover .service-icon.peyzaj {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(17, 153, 142, 0.5);
}

/* Service Number Badge */
.service-number {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 45px;
    height: 45px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-green);
    border: 2px solid rgba(76, 175, 80, 0.2);
    transition: var(--transition-normal);
}

.service-card:hover .service-number {
    background: var(--primary-green);
    color: var(--text-white);
    border-color: var(--primary-green);
    transform: scale(1.15);
}

/* Service Content */
.service-content {
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.service-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* Service Highlights */
.service-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
}

    .service-highlights li {
        padding: var(--spacing-xs) 0;
        font-size: var(--font-size-sm);
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
    }

        .service-highlights li i {
            color: var(--primary-green);
            font-size: 0.9rem;
            flex-shrink: 0;
        }

/* Service Link */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-green);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    margin-top: auto;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    align-self: center;
}

    .service-link:hover {
        background: rgba(76, 175, 80, 0.1);
        color: var(--primary-green-dark);
    }

    .service-link i {
        transition: transform var(--transition-fast);
    }

    .service-link:hover i {
        transform: translateX(5px);
    }

/* Services CTA Bottom */
.services-cta-bottom {
    text-align: center;
    margin-top: var(--spacing-xxl);
    position: relative;
    z-index: 1;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

    .btn-outline-primary:hover {
        background: var(--primary-green);
        color: var(--text-white);
        border-color: var(--primary-green);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .service-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .service-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .service-title {
        font-size: var(--font-size-lg);
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-primary);
    color: var(--text-white);
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: var(--font-size-4xl);
    }
}

.cta-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--bg-white);
    color: var(--primary-green);
    border: 2px solid var(--bg-white);
}

    .cta-button:hover {
        background: transparent;
        color: var(--bg-white);
        border-color: var(--bg-white);
    }

/* ===== VIEW ALL BUTTON ===== */
.view-all-container {
    text-align: center;
    margin-top: var(--spacing-3xl);
}
/* ===== CATEGORY IMAGE SLIDER ===== */
.category-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
}

.category-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .category-slider-image.active {
        opacity: 1;
        z-index: 1;
    }

    /* ÇÖZÜM: Tek resim varsa göster */
    .category-slider-image:only-child {
        opacity: 1 !important;
        position: relative !important;
    }

    /* İlk resim varsayılan olarak görünsün (birden fazla resim varsa) */
    .category-slider-image:first-child:not(:only-child) {
        opacity: 1;
    }
/* ===== PRODUCT IMAGE SLIDER ===== */
.product-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .product-slider-image.active {
        opacity: 1;
        z-index: 1;
    }

    /* ÇÖZÜM: Tek resim varsa göster */
    .product-slider-image:only-child {
        opacity: 1 !important;
        position: relative !important;
    }

    /* İlk resim varsayılan olarak görünsün (birden fazla resim varsa) */
    .product-slider-image:first-child:not(:only-child) {
        opacity: 1;
    }

/* Product card footer için buton grubu */
.product-card-actions {
    display: flex;
    gap: var(--spacing-sm);
}

    .product-card-actions .btn {
        flex: 1;
        font-size: var(--font-size-sm);
        padding: 10px 12px;
    }

/* Mobile'da daha kompakt */
@media (max-width: 480px) {
    .product-card-actions .btn {
        padding: 10px 8px;
        font-size: var(--font-size-xs);
    }

    /* Buton text'lerini gizle, sadece icon göster */
    .product-card-actions .btn-text {
        display: none;
    }

    .product-card-actions .btn i {
        margin: 0;
        font-size: var(--font-size-base);
    }
}

/* Tablet ve üstü - normal görünüm */
@media (min-width: 480px) {
    .product-card-actions .btn-text {
        display: inline;
    }
}