/* Global Container Spacing - Tüm section'lar için tutarlı */
.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Section Consistency - Tüm section'lar aynı spacing */
section {
    margin: 0 !important;
    padding: 0 !important;
}

section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Tüm section'larda tutarlı hizalama */
section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

section .col-12,
section .col-md-6,
section .col-lg-3,
section .col-lg-4,
section .col-lg-8 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Tüm section başlıkları için tutarlı hizalama */
section h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

/* Story Container */
.story-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* İçeriği soldan başlat */
    flex-wrap: nowrap;
    padding: 15px;
    border: none;
    box-shadow: none;
    position: relative;
    width: 100%;
    overflow-x: auto; /* Yatay kaydırmayı etkinleştir */
    -webkit-overflow-scrolling: touch; /* iOS için düzgün kaydırma */
    scrollbar-width: none; /* Firefox için scrollbar'ı gizle */
    -ms-overflow-style: none; /* IE ve Edge için scrollbar'ı gizle */
    user-select: none; /* Seçilmeyi engelle */
}

/* Circle Avatar Alanı */
.circle-avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4vw;
    padding: 30px 0;
    width: max-content; /* İçerik genişliğine göre ayarla */
    margin: 0 auto; /* Merkeze hizala */
}

.avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 5px;
    flex: 0 0 auto; /* Avatarların boyutunu sabitle */
    cursor: pointer; /* Tıklanabilir olduğunu göster */
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.avatar p {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* Slider Card Section */
.slider-card-section {
    padding: 3rem 0;
}

.slider-card-section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.slider-card-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.slider-card-section .col-lg-8,
.slider-card-section .col-lg-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Publishers Section */
.publishers-section {
    padding: 3rem 0;
}

.publishers-section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.publishers-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.publishers-section h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

.publishers-wrapper {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    min-height: calc((120px + 20px) * (var(--publisher-rows, 1)));
    margin: 0;
}

.publishers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 0;
}

.publisher-item {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
}

.publisher-item:hover {
    transform: scale(1.1);
}

.publisher-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #333;
}

.broadcaster-name {
    position: absolute;
    width: 120px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Slider */
.main-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-img {
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.swiper-slide {
    width: 100%;
    height: 400px;
}

.hover-card {
    transition: transform 0.3s ease;
    height: 190px;
    overflow: hidden;
    border-radius: 16px;
    margin: 0;
    cursor: pointer;
}

.hover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.hover-card:hover {
    transform: scale(1.02);
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    background: #fff;
    opacity: 0.7;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
    transform: scale(1.2);
}

/* Category Card */
.category-img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Popular Categories Section */
.popular-categories {
    padding: 3rem 0;
}

.popular-categories .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.popular-categories .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.popular-categories .col-sm-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.popular-categories h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

/* Discounted Products Section */
.discounted-products {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.discounted-products .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.discounted-products .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.discounted-products .col-12,
.discounted-products .col-md-6,
.discounted-products .col-lg-3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.discounted-products h3 {
    color: #fff;
    position: relative;
    display: inline-block;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

.discount-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    margin: 0;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 8px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.discount-badge span {
    font-size: 0.9rem;
    font-weight: bold;
}

.discount-badge small {
    font-size: 0.6rem;
}

.product-image {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-details {
    color: white;
    text-align: center;
    position: relative;
}

.product-details h5 {
    margin: 10px 0;
    font-size: 1rem;
    font-weight: 600;
}

.price-container {
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
    margin-right: 8px;
}

.new-price {
    color: #4ecdc4;
    font-weight: bold;
    font-size: 1.1rem;
}

.action-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.btn-shop {
    background: #155d7e;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.days-left {
    color: #eee;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn-shop:hover {
    opacity: 0.9;
    color: white;
}

/* Blog Section */
.blog-section {
    padding: 3rem 0;
}

.blog-section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.blog-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.blog-section .col-12,
.blog-section .col-md-6,
.blog-section .col-lg-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.blog-section .section-title {
    color: #fff;
    font-weight: 600;
    text-align: left;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
}

.blog-category span {
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    color: #155d7e;
    font-size: 0.9rem;
}

.blog-content {
    padding: 20px;
    background-color: #155d7e;
    color: #fff;
}

.blog-title {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-excerpt {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #e0e0e0;
    font-size: 0.8rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: #fff;
    border: none;
    color: #fff;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #e0e0e0;
    color: #155d7e;
}

/* Instagram Banner Section */
.instagram-banner-container {
    padding: 3rem 0;
}

.instagram-banner-container .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.instagram-banner-container .custom-instagram-banner {
    margin-left: 15px !important;
    margin-right: 15px !important;
}

.instagram-banner-container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.custom-instagram-banner {
    background: linear-gradient(45deg, #0c3b52, #104b68, #155d7e, #176c93, #1a7299, #1d7ba3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 20px;
    min-height: calc((120px + 20px) * (var(--publisher-rows, 1)));
}

.animated-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.circle-1 {
    width: 200px;
    height: 200px;
    background: #155d7e;
    top: -50px;
    left: -50px;
    animation: float 8s infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #1a7299;
    bottom: -100px;
    right: -50px;
    animation: float 10s infinite;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: #104b68;
    top: 50%;
    left: 50%;
    animation: float 12s infinite;
}

.floating-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    animation: iconFloat 6s infinite;
}

.icon-float-1 {
    top: 20%;
    left: 10%;
    font-size: 2rem;
    animation-delay: 0s;
}

.icon-float-2 {
    top: 60%;
    left: 20%;
    font-size: 1.5rem;
    animation-delay: 1s;
}

.icon-float-3 {
    top: 30%;
    right: 15%;
    font-size: 1.8rem;
    animation-delay: 2s;
}

.icon-float-4 {
    top: 70%;
    right: 25%;
    font-size: 1.6rem;
    animation-delay: 3s;
}

.instagram-profile-pic img {
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    z-index: 1;
    position: relative;
}

.social-stats {
    color: white;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-follow {
    background: white;
    color: #155d7e;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #f8f9fa;
}

.profile-info {
    margin-left: 1rem;
    position: relative;
    z-index: 5;
}

.fab, .fas {
    margin-right: 0.5rem;
}

.sub-header-link i {
    margin-right: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 3rem 0;
}

.testimonials-section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.testimonials-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.testimonials-section .col-lg-4,
.testimonials-section .col-md-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.testimonials-section h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

/* Features Section */
.features-section {
    padding: 3rem 0;
}

.features-section .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.features-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.features-section .col-lg-3,
.features-section .col-md-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.features-section h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
}

/* Best Selling Products */
#bestSellingProducts .card {
    height: 100%;
    max-width: 100%;
    margin: 0;
}

#bestSellingProducts .card img {
    height: 150px;
    object-fit: cover;
}

#bestSellingProducts .col {
    width: 50%;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

#bestSellingProducts .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@keyframes float {

    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes iconFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .story-container {
        padding: 5px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }

    .story-container::-webkit-scrollbar {
        display: none;
    }

    .circle-avatar-container {
        flex-direction: row;
        gap: 15px;
        padding: 10px;
        justify-content: flex-start;
        width: max-content;
        margin-left: 5px;
    }

    .avatar {
        flex: 0 0 60px;
        margin: 0;
        padding: 0;
    }

    .avatar:first-child {
        margin-left: 0;
    }

    .avatar:last-child {
        margin-right: 10px;
    }

    .avatar-img {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    .avatar p {
        font-size: 11px;
        margin-top: 4px;
        width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .publishers-grid {
        gap: 20px;
    }

    .publisher-item {
        width: 60px;
        height: 60px;
        margin-bottom: 25px;
    }

    .broadcaster-name {
        width: 100px;
        font-size: 12px;
        margin-top: 10px;
    }

    .publishers-wrapper {
        min-height: calc((100px + 25px) * (var(--publisher-rows, 1)));
    }

    .slider-card-section .row {
        flex-direction: column;
    }

    .swiper-slide {
        height: 200px;
    }

    .col-lg-4 .d-flex {
        flex-direction: row !important;
        gap: 15px;
        margin-top: 20px;
    }

    .hover-card {
        width: 50%;
        height: 150px;
    }

    .hover-card.mt-3 {
        margin-top: 0 !important;
    }

    .slider-img {
        height: 200px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }

    .swiper-pagination-bullet-active {
        transform: scale(1.1);
    }

    .category-card {
        height: 130px; /* Mobilde daha küçük */
        margin: 5px 5px 15px 5px; /* Alt boşluk eklendi */
    }

    .popular-categories .row {
        margin: 0 -5px;
    }

    .popular-categories .col-sm-6 {
        padding: 5px;
    }

    .category-card:hover {
        transform: scale(1.02);
    }

    .category-img:hover {
        transform: scale(1.02);
    }

    .popular-categories h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem !important;
        padding-left: 10px;
    }
    
    .blog-image {
        height: 180px;
    }

    .blog-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .row {
        margin: 0 10px;
    }

    .col-12 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .category-card {
        height: 100px; /* En küçük ekranda daha da küçük */
        margin-bottom: 15px; /* Alt boşluk korundu */
    }

    .col-sm-6 {
        width: 50%;
    }

    .publishers-grid {
        gap: 15px;
    }

    .publisher-item {
        width: 50px;
        height: 50px;
        margin-bottom: 30px;
    }

    .broadcaster-name {
        width: 80px;
        font-size: 11px;
        font-weight: bold;
    }

    .publishers-wrapper {
        min-height: calc((90px + 30px) * (var(--publisher-rows, 1)));
        padding: 15px;
    }
}