/* 
 * CD Footer Styles - Modern & Premium
 */

:root {
    --cd-footer-bg: #0f172a;
    --cd-footer-bg-alt: #1e293b;
    --cd-footer-text: #94a3b8;
    --cd-footer-title: #f8fafc;
    --cd-footer-accent: #3b82f6;
    --cd-footer-border: rgba(255, 255, 255, 0.1);
}

.cd-footer-wrapper {
    background-color: var(--cd-footer-bg);
    background-image: linear-gradient(180deg, var(--cd-footer-bg) 0%, #020617 100%);
    color: var(--cd-footer-text);
    padding: 80px 0 0 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.cd-footer-wrapper::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cd-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.cd-footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand Column */
.cd-footer-brand .cd-footer-logo img {
    max-width: 220px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.cd-footer-site-name {
    color: var(--cd-footer-title);
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.cd-footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--cd-footer-text);
    max-width: 300px;
}

/* Common elements */
.cd-footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--cd-footer-title);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 12px;
}

.cd-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--cd-footer-accent);
    border-radius: 2px;
}

/* Links List */
.cd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-footer-links li {
    margin-bottom: 12px;
}

.cd-footer-links a {
    color: var(--cd-footer-text);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cd-footer-links a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.cd-footer-links a:hover {
    color: var(--cd-footer-accent);
    transform: translateX(5px);
}

.cd-footer-links a:hover .dashicons {
    opacity: 1;
    color: var(--cd-footer-accent);
}

/* Info Items (Location/Hours) */
.cd-footer-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cd-info-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cd-footer-accent);
}

.cd-info-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cd-info-text {
    font-size: 14px;
    line-height: 1.5;
}

.cd-info-text strong {
    color: var(--cd-footer-title);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Contact Links */
.cd-footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cd-footer-text);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cd-footer-contact-link:hover {
    color: var(--cd-footer-title);
}

.cd-footer-contact-link:hover .cd-info-icon {
    background: var(--cd-footer-accent);
    color: white;
}

/* Social Section */
.cd-footer-social-wrap {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--cd-footer-border);
}

.cd-social-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--cd-footer-title);
    opacity: 0.8;
}

.cd-footer-social-icons {
    display: flex;
    gap: 12px;
}

.cd-social-btn {
    width: 40px;
    height: 40px;
    background: var(--cd-footer-bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--cd-footer-border);
}

.cd-social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.cd-social-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.cd-social-btn.ig:hover { background: #e4405f; border-color: #e4405f; }
.cd-social-btn.yt:hover { background: #ff0000; border-color: #ff0000; }

/* Bottom Bar */
.cd-footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid var(--cd-footer-border);
}

.cd-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(148, 163, 184, 0.6);
}

.cd-copyright {
    font-weight: 400;
}

.cd-dev-credits a {
    color: var(--cd-footer-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cd-dev-credits a:hover {
    color: var(--cd-footer-title);
}

/* Responsive */
@media (max-width: 1024px) {
    .cd-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .cd-footer-wrapper {
        padding: 60px 0 0 0;
    }
    
    .cd-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .cd-footer-brand {
        align-items: flex-start;
    }

    .cd-footer-description {
        margin: 0;
    }

    .cd-footer-links a,
    .cd-footer-info-item,
    .cd-footer-contact-link {
        justify-content: flex-start;
    }

    .cd-footer-social-icons {
        justify-content: flex-start;
    }

    .cd-footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        text-align: left;
    }
}

/* ==========================================
   High Contrast (Acessibilidade) Overrides
   ========================================== */
body.cd-high-contrast .cd-footer-wrapper {
    background: #000000 !important;
    border-top: 2px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body.cd-high-contrast .cd-footer-wrapper::before {
    display: none !important; /* Hide subtle background glow */
}

body.cd-high-contrast .cd-footer-site-name,
body.cd-high-contrast .cd-footer-description,
body.cd-high-contrast .cd-footer-title,
body.cd-high-contrast .cd-footer-links a,
body.cd-high-contrast .cd-info-text,
body.cd-high-contrast .cd-info-text strong,
body.cd-high-contrast .cd-footer-contact-link,
body.cd-high-contrast .cd-social-label,
body.cd-high-contrast .cd-footer-bottom-inner,
body.cd-high-contrast .cd-copyright {
    color: #ffffff !important;
}

body.cd-high-contrast .cd-footer-title::after {
    background: #ffff00 !important;
}

body.cd-high-contrast .cd-footer-links a:hover,
body.cd-high-contrast .cd-footer-contact-link:hover {
    color: #ffff00 !important;
}

body.cd-high-contrast .cd-footer-links a .dashicons,
body.cd-high-contrast .cd-footer-links a:hover .dashicons {
    color: #ffff00 !important;
    opacity: 1 !important;
}

body.cd-high-contrast .cd-info-icon {
    background: #222222 !important;
    border: 1px solid #ffffff !important;
    color: #ffff00 !important;
}

body.cd-high-contrast .cd-footer-contact-link:hover .cd-info-icon {
    background: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

body.cd-high-contrast .cd-social-btn {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

body.cd-high-contrast .cd-social-btn:hover {
    background: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

body.cd-high-contrast .cd-footer-bottom {
    background: #000000 !important;
    border-top: 1px solid #ffffff !important;
}

body.cd-high-contrast .cd-dev-credits a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.cd-high-contrast .cd-dev-credits a:hover {
    color: #ffffff !important;
}

body.cd-high-contrast .cd-footer-brand .cd-footer-logo img {
    filter: grayscale(1) contrast(1.5) !important;
}


