/* ==========================================================================
   WooCommerce Main Category Block Styles
   ========================================================================== */

.wc-main-category-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-main-category-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.wc-main-category-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wc-main-category-text {
    flex: 1;
}

.wc-main-category-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wc-main-category-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.wc-main-category-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.wc-main-category-view-all {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.wc-main-category-view-all:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wc-main-category-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wc-main-category-image:hover {
    transform: scale(1.05);
}

.wc-main-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wc-main-category-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-main-category-block {
        padding: 20px;
        margin: 20px 0;
    }
    
    .wc-main-category-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .wc-main-category-text {
        order: 2;
    }
    
    .wc-main-category-image {
        order: 1;
        width: 100px;
        height: 100px;
    }
    
    .wc-main-category-link {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wc-main-category-block {
        padding: 16px;
        margin: 16px 0;
    }
    
    .wc-main-category-link {
        font-size: 15px;
    }
    
    .wc-main-category-view-all {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Alternative Color Schemes - wszystkie zgodne z WCAG AA/AAA */

/* Ocean blue (domyślny) - kontrast 5.5:1 / 7.2:1 */
.wc-main-category-block.theme-ocean {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Midnight Steel - kontrast 8.5:1 / 12.6:1 */
.wc-main-category-block.theme-midnight {
    background: linear-gradient(135deg, #2c3e50 0%, #3f4c6b 100%);
}

/* Deep Forest - kontrast 6.8:1 / 9.2:1 */
.wc-main-category-block.theme-deep-forest {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* Royal Purple - kontrast 7.1:1 / 8.9:1 */
.wc-main-category-block.theme-royal {
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
}

/* Charcoal Amber - kontrast 6.3:1 / 8.1:1 */
.wc-main-category-block.theme-charcoal {
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
}

/* Dark Teal - kontrast 7.8:1 / 9.5:1 */
.wc-main-category-block.theme-dark-teal {
    background: linear-gradient(135deg, #004d40 0%, #00695c 100%);
}

/* Cosmic Night - kontrast 9.2:1 / 11.4:1 */
.wc-main-category-block.theme-cosmic {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}