/* Slider Section */
@import url('../css/style.css');


.slider-section {
    padding: 0px 0 !important;
    margin-bottom: 0 !important;
    background-color: #fff;
}

.slider-section .container,
.slider-container,
.main-slider,
.main-slide {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Ana container için boşlukları kaldır */
#main-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Bootstrap container padding'ini kaldır - SADECE MOBİLDE VE SADECE SLIDER İÇİN */
@media (max-width: 768px) {
    .slider-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Body ve HTML margin'lerini sıfırla - SADECE MOBİLDE */
@media (max-width: 768px) {
    body, html {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Trend Tarifler başlığının üst boşluğunu kaldır */
.slider-section + section.container, .slider-section + .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.slider-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 15px !important;
}

.slider-section .container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


.slider-container {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    margin-top: 0;
}

/* Main Slider */
.main-slider {
    flex: 0 0 75%;
    max-width: 75%;
   
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-slide {
    position: relative;
    
    overflow: hidden;
    height: 430px;
}

.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-slide:hover img {
    transform: scale(1.03);
}

/* Popular Desserts Sidebar */
.popular-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    background: #f8f9fa;
    border-radius: 8px;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: -20px;
    height: 100%;
    overflow-y: auto;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.popular-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #e9eff1 !important;
    border: 1px solid #f0f0f0;
}

.popular-item:hover {
    border-color: transparent;
}

.popular-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-title a:hover {
    color: #ef3682 !important; /* Yeni pembe renk */
    text-decoration: none !important;
}

.popular-author {
    transition: color 0.2s ease;
}

a:hover .popular-author {
    color: #ef3682 !important;
}

.popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.popular-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.popular-item:hover .popular-img img {
    transform: scale(1.05);
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.popular-author {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 5px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .slider-container {
        flex-direction: column;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
    }
    
    .main-slider,
    .popular-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .main-slide {
        height: 400px;
    }
    
    .popular-sidebar {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    #main-container {
        padding: 0 !important;
        margin: 0 !important;
    }
}
