/**
 * Visual Showcase Frontend Styles
 * AMP-compatible version
 */

/* Main container styles */
.visual-showcase-container {
    padding: 0px 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden; /* Çocuk elementlerin taşmasını engelle */
}

/* Showcase title */
.showcase-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Showcase header image */
.showcase-header-image {
    text-align: center;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.showcase-header-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto;
    border-radius: 5px;
}

/* AMP specific styles */
.showcase-header-image amp-img {
    margin: 0 auto;
    max-width: 100%;
    border-radius: 5px;
}

/* Fallback standart görsel stilleri */
.standard-image-fallback {
    display: none; /* Varsayılan olarak gizle */
}

/* AMP yüklenemezse fallback görseli göster */
.amp-unresolved .standard-image-fallback,
.amp-uninitialized .standard-image-fallback {
    display: block;
}

/* Fallback görselinin AMP görselleriyle aynı stili almasını sağla */
.standard-image-fallback img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    margin: 0 auto;
    border-radius: 5px;
}

/* Showcase specific colors */
.diamond-showcase .showcase-title {
    color: #3498db;
}

.gold-showcase .showcase-title {
    color: #f1c40f;
}

.vip-showcase .showcase-title {
    color: #9b59b6;
}

.silver-showcase .showcase-title {
    color: #95a5a6;
}

/* Items container - flexbox grid */
.showcase-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px; /* Negative margin to offset item padding */
    justify-content: flex-start;
}

/* Individual item */
.showcase-item {
    flex: 0 0 calc(25% - 20px); /* 4 items per row on desktop */
    box-sizing: border-box;
}

/* AMP doesn't support hover pseudo-classes in the same way */
/* So we've removed the hover effects */

/* Item image */
.showcase-item img,
.showcase-item amp-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Responsive styles */
@media (max-width: 992px) {
    .showcase-item {
        flex: 0 0 calc(33.333% - 20px); /* 3 items per row on tablets */
    }
}

@media (max-width: 768px) {
    .showcase-item {
        flex: 0 0 calc(50% - 20px); /* 2 items per row on small tablets */
    }
}

@media (max-width: 576px) {
    .showcase-item {
        flex: 0 0 calc(100% - 20px); /* 1 item per row on mobile */
    }
}
