/**
 * FOOTER.CSS — Noul Footer (Theme Aware)
 */

/* ============================================================
   FOOTER BODY
   ============================================================ */
.site-footer {
    position: relative;
    background: var(--nws-surface-2);
    color: var(--nws-text-soft);
    font-size: 13px;
    line-height: 1.4;
    margin-top: auto; 
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--nws-border);
}

.footer-bg-watermark {
    position: absolute;
    top: -50px;
    right: 80px;
    width: 700px;
    pointer-events: none;
    z-index: 0;
}
.footer-bg-watermark img {
    width: 100%;
    height: auto;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.5;
}
[data-theme="dark"] .footer-bg-watermark img {
    mix-blend-mode: normal;
    filter: brightness(0) invert(1);
    opacity: 0.03;
}

.footer-body {
    position: relative;
    z-index: 1;
    padding: 70px 0 40px;
}

.footer-body .container {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 0 var(--sp-24, 24px);
}

/* ============================================================
   5-COLUMN GRID
   ============================================================ */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

/* ============================================================
   COLUMN 1: BRAND & COMPANY INFO
   ============================================================ */
.footer-logo {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-logo__img {
    height: 38px;
    width: auto;
    display: block;
}

/* Ascundem logo-ul nepotrivit in functie de tema */
.footer-logo-dark { display: none; }
[data-theme="dark"] .footer-logo-light { display: none !important; }
[data-theme="dark"] .footer-logo-dark { display: block !important; }

.footer-company-info {
    font-size: 13px;
    letter-spacing: -0.2px;
    line-height: 1.4;
    color: var(--nws-text-soft);
}
.footer-company-info p {
    margin: 0 0 8px 0;
}
.footer-company-info p:last-child {
    margin-bottom: 0;
}
.footer-company-name strong {
    font-weight: 700;
    color: var(--nws-text);
    font-size: 14px;
}

/* ============================================================
   COLUMN TITLES
   ============================================================ */
.footer-col-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--nws-text);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.footer-col-title strong {
    font-weight: 700;
}
.footer-col-title--margin {
    margin-top: 35px;
}

/* ============================================================
   COLUMN LINKS
   ============================================================ */
.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-col-links a,
.footer-col-links span {
    display: inline-block;
    font-size: 14px;
    letter-spacing: -0.2px;
    line-height: 16px;
    font-weight: 400;
    color: var(--nws-text-soft) !important;
    text-decoration: none;
    transition: color 200ms ease;
    padding: 3px 0;
}

.footer-col-links a:hover {
    color: var(--nws-primary) !important;
}

[data-theme="dark"] .footer-col-links a,
[data-theme="dark"] .footer-col-links span {
    color: rgba(255, 255, 255, 0.75) !important;
}
[data-theme="dark"] .footer-col-links a:hover {
    color: #fff !important;
}

/* ============================================================
   PLATFORMS (in col 5)
   ============================================================ */
.footer-platforms-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-platform-link {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--nws-text);
    text-decoration: none;
    transition: color 200ms ease, opacity 200ms;
}

.footer-platform-link strong {
    font-family: 'Chennai', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1em;
}

.footer-platform-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 200ms ease;
}

.footer-platform-link:hover {
    color: var(--nws-primary);
}
.footer-platform-link:hover svg,
.footer-platform-link:hover img {
    opacity: 1;
}

[data-theme="dark"] .footer-platform-link img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}
[data-theme="dark"] .footer-ripe-logo img {
    filter: brightness(1.3) contrast(0.9);
}

/* ============================================================
   BOTTOM BAR (COPYRIGHT)
   ============================================================ */
.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--nws-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    padding-bottom: 30px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.footer-legal-links a {
    color: var(--nws-text-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--nws-text);
}

.footer-copyright {
    font-size: 10px;
    color: var(--nws-text-muted);
    text-align: center;
    margin-top: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-col-title {
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .footer-bg-watermark {
        right: -100px;
        opacity: 0.2;
    }
}
