/**
 * Footer Styles
 * Reusable footer component styles with x-prefixed classes
 */

/* ---------- FOOTER VARIABLES ---------- */
:root {
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --footer-text-muted: #999999;
    --footer-accent: #fe0000;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-hover: #fe0000;
}

/* ---------- FOOTER MAIN ---------- */
.xfooter {
    background: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 60px 0 0 !important;
    margin-top: 80px !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    width: 100% !important;
}

.xfooter-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.xfooter-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 2fr !important;
    gap: 40px !important;
    padding-bottom: 40px !important;
    border-bottom: 1px solid var(--footer-border) !important;
}

/* ---------- FOOTER BRAND ---------- */
.xfooter-brand {
    display: flex;
    flex-direction: column;
}

.xfooter-logo {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 32px !important;
    letter-spacing: 2px !important;
    margin: 0 0 15px 0 !important;
    color: var(--footer-text) !important;
    display: block !important;
}

.xfooter-logo span {
    color: var(--footer-accent) !important;
}

.xfooter-tagline {
    color: var(--footer-text-muted);
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.xfooter-social {
    display: flex;
    gap: 12px;
}

.xfooter-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

.xfooter-social a:hover {
    background: var(--footer-hover);
    color: var(--footer-text);
}

/* ---------- FOOTER LINKS ---------- */
.xfooter-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--footer-text);
}

.xfooter-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xfooter-links li {
    margin-bottom: 12px;
}

.xfooter-links a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.xfooter-links a:hover {
    color: var(--footer-hover);
}

/* ---------- FOOTER NEWSLETTER ---------- */
.xfooter-newsletter h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--footer-text);
}

.xfooter-newsletter p {
    color: var(--footer-text-muted);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.xnewsletter-form {
    position: relative;
}

.xnewsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.xnewsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--footer-text);
    font-size: 14px;
    outline: none;
}

.xnewsletter-input-group input::placeholder {
    color: var(--footer-text-muted);
}

.xnewsletter-input-group button {
    background: var(--footer-accent);
    border: none;
    padding: 12px 20px;
    color: var(--footer-text);
    cursor: pointer;
    font-size: 16px;
}

.xnewsletter-input-group button:hover {
    background: #d00000;
}

.xnewsletter-message {
    margin-top: 10px;
    font-size: 13px;
    display: none;
}

.xnewsletter-message.success {
    color: #4caf50;
    display: block;
}

.xnewsletter-message.error {
    color: #f44336;
    display: block;
}

/* ---------- FOOTER BOTTOM ---------- */
.xfooter-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xfooter-copyright p {
    margin: 0;
    color: var(--footer-text-muted);
    font-size: 14px;
}

.xfooter-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xfooter-legal a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.xfooter-legal a:hover {
    color: var(--footer-hover);
}

.xfooter-separator {
    color: var(--footer-text-muted);
    opacity: 0.5;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 992px) {
    .xfooter-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .xfooter-brand {
        grid-column: 1 / -1;
    }

    .xfooter-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .xfooter {
        padding: 40px 0 0;
        margin-top: 60px;
    }

    .xfooter-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .xfooter-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .xfooter-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .xfooter-social {
        justify-content: center;
    }

    .xfooter-logo {
        text-align: center;
    }

    .xfooter-tagline {
        text-align: center;
    }

    .xfooter-links h4,
    .xfooter-newsletter h4 {
        text-align: center;
    }

    .xfooter-links ul {
        text-align: center;
    }

    .xfooter-newsletter p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .xfooter-logo {
        font-size: 24px;
    }

    .xnewsletter-input-group {
        flex-direction: column;
    }

    .xnewsletter-input-group button {
        width: 100%;
    }
}