/* ================================================
   FOOTER WIDGET STYLES
   Professional multi-column footer
   ================================================ */

/* Main Footer Container */
.cew-footer {
    background: #f8f9fa;
    width: 100%;
}

/* Footer Columns Grid */
.cew-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Column */
.cew-footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Column Titles */
.cew-footer-column-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    text-transform: none;
    line-height: 1.4;
}

/* About/Description Text */
.cew-footer-about {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Links List */
.cew-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cew-footer-links li {
    margin: 0;
    padding: 0;
}

.cew-footer-link {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1.5;
}

.cew-footer-link:hover {
    color: #0066ff;
}

/* Newsletter Form */
.cew-newsletter-form {
    width: 100%;
}

.cew-newsletter-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

.cew-newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.4;
}

.cew-newsletter-input::placeholder {
    color: #999999;
}

.cew-newsletter-input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.cew-newsletter-button {
    padding: 12px 24px;
    background: #0066ff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.cew-newsletter-button:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.cew-newsletter-button:active {
    transform: translateY(0);
}

/* Copyright Bar */
.cew-footer-copyright {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 24px 20px;
    text-align: center;
}

.cew-footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: #999999;
    line-height: 1.5;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Large Desktop */
@media (min-width: 1200px) {
    .cew-footer-columns {
        padding: 60px 40px 40px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .cew-footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Small Tablet */
@media (max-width: 768px) {
    .cew-footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 30px;
    }
    
    .cew-footer-column {
        gap: 16px;
    }
    
    .cew-newsletter-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .cew-newsletter-button {
        width: 100%;
    }
    
    .cew-footer-copyright {
        padding: 20px 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cew-footer-columns {
        padding: 30px 15px 20px;
        gap: 28px;
    }
    
    .cew-footer-column-title {
        font-size: 15px;
    }
    
    .cew-footer-about,
    .cew-footer-link {
        font-size: 13px;
    }
    
    .cew-newsletter-input,
    .cew-newsletter-button {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ================================================
   DARK MODE SUPPORT
   ================================================ */

@media (prefers-color-scheme: dark) {
    .cew-footer {
        background: #1a1a1a;
    }
    
    .cew-footer-column-title {
        color: #ffffff;
    }
    
    .cew-footer-about,
    .cew-footer-link {
        color: #b0b0b0;
    }
    
    .cew-footer-link:hover {
        color: #4d94ff;
    }
    
    .cew-newsletter-input {
        background: #2a2a2a;
        border-color: #3a3a3a;
        color: #ffffff;
    }
    
    .cew-newsletter-input::placeholder {
        color: #666666;
    }
    
    .cew-newsletter-input:focus {
        border-color: #0066ff;
        background: #2a2a2a;
    }
    
    .cew-footer-copyright {
        background: #1e1e1e;
        border-top-color: #2a2a2a;
    }
    
    .cew-footer-copyright p {
        color: #808080;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

.cew-footer-link:focus,
.cew-newsletter-input:focus,
.cew-newsletter-button:focus {
    outline: 2px solid #0066ff;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .cew-footer-link,
    .cew-newsletter-button,
    .cew-newsletter-input {
        transition: none;
    }
    
    .cew-newsletter-button:hover {
        transform: none;
    }
}

/* ================================================
   LOADING & ERROR STATES
   ================================================ */

/* Form Loading State */
.cew-newsletter-form.loading .cew-newsletter-button {
    opacity: 0.6;
    pointer-events: none;
}

.cew-newsletter-form.loading .cew-newsletter-button::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Success State */
.cew-newsletter-form.success .cew-newsletter-wrapper {
    border: 2px solid #10b981;
    border-radius: 6px;
    padding: 0;
}

.cew-newsletter-form.success .cew-newsletter-input {
    border-color: #10b981;
}

/* Form Error State */
.cew-newsletter-form.error .cew-newsletter-wrapper {
    border: 2px solid #ef4444;
    border-radius: 6px;
    padding: 0;
}

.cew-newsletter-form.error .cew-newsletter-input {
    border-color: #ef4444;
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    .cew-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .cew-newsletter-form {
        display: none;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

/* Minimal Footer Variant */
.cew-footer.minimal {
    background: transparent;
}

.cew-footer.minimal .cew-footer-copyright {
    background: transparent;
    border-top: none;
}

/* Dark Footer Variant */
.cew-footer.dark {
    background: #1a1a1a;
}

.cew-footer.dark .cew-footer-column-title {
    color: #ffffff;
}

.cew-footer.dark .cew-footer-about,
.cew-footer.dark .cew-footer-link {
    color: #b0b0b0;
}

.cew-footer.dark .cew-footer-link:hover {
    color: #4d94ff;
}

.cew-footer.dark .cew-footer-copyright {
    background: #1e1e1e;
    border-top-color: #2a2a2a;
}

.cew-footer.dark .cew-newsletter-input {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
}

/* Compact Footer Variant */
.cew-footer.compact .cew-footer-columns {
    padding: 40px 20px 30px;
    gap: 30px;
}

.cew-footer.compact .cew-footer-copyright {
    padding: 16px 20px;
}

/* Wide Footer Variant */
.cew-footer.wide .cew-footer-columns {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}