/**
 * WC Product Promoter Frontend Styles
 */

/* Base promotion styles */
.wc-promoter-single {
    margin-bottom: 2rem;
}

/* Hero Style */
.wc-promoter-hero {
    width: 100%;
    padding: 3rem 2rem;
    background: #a00;
    overflow: hidden;
    position: relative;
    color: #fff;
    margin: 0;
    padding: 0;
}

.wc-promoter-hero-content {
    display: flex;
    align-items: center;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 5em 2rem;
    width: 100%;
    gap: 3rem;
}

.wc-promoter-text {
    flex: 1;
    min-width: 0;
}

.wc-promoter-hero-image {
    flex: 0 0 45%;
    max-width: 500px;
}

.wc-promoter-hero-image .wc-promoter-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.wc-promoter-hero .wc-promoter-headline {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 3rem;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.wc-promoter-hero .wc-promoter-description {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    line-height: 1.5;
    color: #fff;
    font-weight: 400;
}

/* Card Style */
.wc-promoter-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 2rem;
}

.wc-promoter-image {
    flex: 0 0 40%;
    max-width: 400px;
}

.wc-promoter-featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.wc-promoter-card-content {
    flex: 1;
    min-width: 0;
}

.wc-promoter-card .wc-promoter-headline {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.wc-promoter-card .wc-promoter-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #666;
}

/* Banner Style */
.wc-promoter-banner {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;

}

.wc-promoter-banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.wc-promoter-media {
    flex: 0 0 35%;
    max-width: 300px;
}

.wc-promoter-text {
    flex: 1;
    min-width: 0;
}

.wc-promoter-action {
    flex: 0 0 auto;
    margin-left: 1rem;
}

.wc-promoter-banner .wc-promoter-headline {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.wc-promoter-banner .wc-promoter-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
}

/* Minimal Style */
.wc-promoter-minimal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.wc-promoter-image-small {
    flex: 0 0 60px;
}

.wc-promoter-image-small .wc-promoter-featured-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.wc-promoter-minimal-content {
    flex: 1;
    min-width: 0;
}

.wc-promoter-minimal .wc-promoter-headline {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.wc-promoter-minimal .wc-promoter-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Promotion List Styles */
.wc-promoter-list {
    width: 100%;
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wc-promoter-list-item {
    width: 100vw;
}

.wc-promoter-columns-1 { grid-template-columns: 1fr; }
.wc-promoter-columns-2 { grid-template-columns: repeat(2, 1fr); }
.wc-promoter-columns-3 { grid-template-columns: repeat(3, 1fr); }
.wc-promoter-columns-4 { grid-template-columns: repeat(4, 1fr); }
.wc-promoter-columns-5 { grid-template-columns: repeat(5, 1fr); }
.wc-promoter-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Hero adjustments */
    .wc-promoter-hero {
        padding: 2rem 0;
    }
    
    .wc-promoter-hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .wc-promoter-hero-image {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .wc-promoter-hero .wc-promoter-headline {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .wc-promoter-hero .wc-promoter-description {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    /* Card adjustments */
    .wc-promoter-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .wc-promoter-image {
        flex: none;
        max-width: 100%;
    }
    
    .wc-promoter-card .wc-promoter-headline {
        font-size: 1.5rem;
    }
    
    /* Banner adjustments */
    .wc-promoter-banner-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .wc-promoter-media {
        flex: none;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .wc-promoter-action {
        margin-left: 0;
    }
    
    /* Grid adjustments */
    .wc-promoter-columns-2,
    .wc-promoter-columns-3,
    .wc-promoter-columns-4,
    .wc-promoter-columns-5,
    .wc-promoter-columns-6 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet adjustments */
    .wc-promoter-hero .wc-promoter-headline {
        font-size: 3rem;
        font-weight: 750;
    }
    
    .wc-promoter-hero .wc-promoter-description {
        font-size: 1.375rem;
    }
    
    .wc-promoter-columns-3,
    .wc-promoter-columns-4,
    .wc-promoter-columns-5,
    .wc-promoter-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    /* Desktop adjustments */
    .wc-promoter-columns-4,
    .wc-promoter-columns-5,
    .wc-promoter-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wc-promoter-columns-5 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .wc-promoter-columns-6 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1400px) {
    .wc-promoter-columns-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Accessibility */
.wc-promoter-single:focus-within {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.brxe-text-link.btn--primary:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .wc-promoter-single {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .brxe-text-link.btn--primary {
        background: transparent !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}

.btn--white {
    background-color: #fff !important;
    color: #a00 !important;
}
