/**
 * FastYemek - Campaign Banner Component Styles
 * Prompt'taki zorunlu banner şablonu stilleri
 */

/* ===== BASE BANNER ===== */
.fy-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 460px;
    width: 100%;
}

.fy-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.fy-banner-lg {
    min-height: 250px;
}

.fy-banner-sm {
    min-height: 120px;
}

/* ===== CONTENT ===== */
.fy-banner-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.fy-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fy-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.fy-banner-lg .fy-title {
    font-size: 2.25rem;
}

.fy-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.fy-cta {
    display: inline-block;
    background: white;
    color: #333;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fy-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #333;
    text-decoration: none;
}

/* ===== PRODUCTS INSIDE BANNER ===== */
.fy-banner-products {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    max-width: 320px;
}

.fy-banner-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.85rem;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fy-banner-product-item:last-child {
    border-bottom: none;
}

.fy-banner-product-item .name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.fy-banner-product-item .price {
    font-weight: 700;
    color: #fff;
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.8rem;
}

.fy-banner-product-item.more {
    background: transparent;
    border: none;
    width: 100%;
    padding: 4px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #fff;
}

.fy-banner-product-item.more .name {
    font-style: italic;
    opacity: 0.85;
    font-size: 0.85rem;
}

.fy-banner-product-item.more .chevron {
    opacity: 0.85;
    font-size: 0.85rem;
}

/* Minimal template products */
.fy-tpl-minimal .fy-banner-products {
    background: rgba(0, 0, 0, 0.05);
}

.fy-tpl-minimal .fy-banner-product-item .name {
    color: #333;
}

.fy-tpl-minimal .fy-banner-product-item .price {
    color: #666;
}

/* ===== GRAPHIC ===== */
.fy-banner-graphic {
    width: 40%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.fy-banner-graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

/* ===== TEMPLATES ===== */

/* Default (Purple) */
.fy-tpl-default,
.fy-theme-purple {
    background: linear-gradient(135deg, #5d3ebc 0%, #7b4bff 100%);
}

/* Gradient Red */
.fy-tpl-gradient-red,
.fy-theme-red {
    background: linear-gradient(135deg, #ff4b5c 0%, #c9184a 100%);
}

/* Gradient Orange */
.fy-tpl-gradient-orange,
.fy-theme-orange {
    background: linear-gradient(135deg, #ff8a00 0%, #ff3d00 100%);
}

/* Gradient Green */
.fy-tpl-gradient-green,
.fy-theme-green {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

/* Dark */
.fy-tpl-dark {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

/* Minimal */
.fy-tpl-minimal {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.fy-tpl-minimal .fy-banner-content {
    color: #212529;
}

.fy-tpl-minimal .fy-badge {
    background: rgba(0, 0, 0, 0.08);
    color: #495057;
}

.fy-tpl-minimal .fy-cta {
    background: #dc3545;
    color: white;
}

.fy-tpl-minimal .fy-cta:hover {
    background: #c82333;
    color: white;
}

/* Festive */
.fy-tpl-festive {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #673ab7 100%);
}

.fy-tpl-festive .fy-badge {
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Premium */
.fy-tpl-premium {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #ffc107;
}

.fy-tpl-premium .fy-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #212529;
}

.fy-tpl-premium .fy-cta {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #212529;
}

/* ===== PRICE OVERLAY ===== */
.fy-banner-price {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

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

.fy-banner-price .new-price {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== TIMER BADGE ===== */
.fy-banner-timer {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fy-banner {
        flex-direction: column;
        min-height: auto;
    }

    .fy-banner-content {
        padding: 1.25rem;
    }

    .fy-banner-graphic {
        width: 100%;
        height: 150px;
        order: -1;
    }

    .fy-title {
        font-size: 1.5rem;
    }

    .fy-banner-lg .fy-title {
        font-size: 1.75rem;
    }

    .fy-subtitle {
        font-size: 0.9rem;
    }

    .fy-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== CAROUSEL SUPPORT ===== */
.fy-banner-carousel {
    position: relative;
}

.fy-banner-carousel .fy-banner {
    margin: 0 8px;
}

.fy-banner-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.fy-banner-carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.fy-banner-carousel-nav.prev {
    left: 0;
}

.fy-banner-carousel-nav.next {
    right: 0;
}

 .fy-campaign-carousel-viewport {
     overflow: hidden;
 }

 .fy-campaign-carousel-track {
     display: flex;
     will-change: transform;
     transition: transform 350ms ease;
 }

 .fy-campaign-carousel-slide {
     flex: 0 0 100%;
     max-width: 100%;
 }

 .fy-campaign-products {
     margin: 10px 8px 0 8px;
     padding: 12px;
     background: rgba(255, 255, 255, 0.9);
     border-radius: 14px;
     box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
 }

 .fy-campaign-product-item {
     display: flex;
     justify-content: space-between;
     gap: 12px;
     padding: 6px 0;
     border-bottom: 1px solid rgba(0, 0, 0, 0.06);
 }

 .fy-campaign-product-item:last-child {
     border-bottom: none;
 }

 .fy-campaign-product-name {
     font-weight: 600;
     color: #1f2937;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .fy-campaign-product-price {
     color: #ef4444;
     font-weight: 700;
     white-space: nowrap;
 }

 .fy-campaign-product-more {
     margin-top: 8px;
     font-size: 0.9rem;
     color: #6b7280;
     font-weight: 600;
 }
