/* ============================================
   UNIVERSAL FOOTER v3.1 — with WP theme reset
   ============================================ */

/* === Full-width breakout (for flex/centered body layouts like auth-gate) === */
/* 100vw ukljucuje scrollbar pa stvara 8-15px horizontalnog overflowa na mobitelu -
   clip na korijenu reze visak bez stvaranja scroll kontejnera (za razliku od hidden). */
html, body { overflow-x: clip; }

.nl-section,
footer.footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
  align-self: stretch;
}

/* === WP Theme Reset for footer area === */
.nl-section,
.nl-section *,
footer.footer,
footer.footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  text-decoration: none;
  list-style: none;
  -webkit-font-smoothing: antialiased;
}

/* Newsletter Section */
.nl-section { background: linear-gradient(180deg,#1e293b 0%,#172135 100%); padding: 48px 20px; position: relative; overflow: hidden; text-align: center; }
.nl-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath d='M0 80 Q300 40 600 80 T1200 80' fill='none' stroke='rgba(59,130,246,0.08)' stroke-width='1.5'/%3E%3Cpath d='M0 110 Q300 70 600 110 T1200 110' fill='none' stroke='rgba(20,184,166,0.06)' stroke-width='1.5'/%3E%3Cpath d='M0 140 Q300 100 600 140 T1200 140' fill='none' stroke='rgba(59,130,246,0.04)' stroke-width='1'/%3E%3C/svg%3E"); background-size: cover; background-position: center; }
.nl-section::after { content: none; }
.nl-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.nl-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; padding: 6px 16px; font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 16px; letter-spacing: 0.5px; line-height: 1.4; }
.nl-badge strong { color: white; font-weight: 700; }
.nl-title { font-size: 26px; font-weight: 700; color: white; margin-bottom: 8px; line-height: 1.3; text-align: center; }
.nl-sub { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 24px; line-height: 1.5; text-align: center; }
.nl-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.nl-input { flex: 1; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.15) !important; background: rgba(255,255,255,0.08) !important; border-radius: 10px; color: white; font-size: 14px; outline: none; transition: border .2s; height: auto; width: auto; min-height: 0; max-width: none; box-shadow: none; -webkit-appearance: none; }
.nl-input::placeholder { color: rgba(255,255,255,0.4); opacity: 1; }
.nl-input:focus { border-color: rgba(255,255,255,0.4) !important; background: rgba(255,255,255,0.12) !important; }
.nl-btn { padding: 14px 28px; background: linear-gradient(135deg,#3b82f6,#14b8a6); color: white; border: none; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: all .2s; line-height: 1.4; }
.nl-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nl-privacy { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 12px; text-align: center; }
.nl-privacy a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* Main Footer */
footer.footer { background: #0f172a; padding: 56px 20px 0; color: rgba(255,255,255,0.7); text-align: left; }
footer.footer .footer-inner { max-width: 1100px; margin: 0 auto; }
footer.footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
footer.footer .footer-brand { }
footer.footer .footer-logo { height: 32px; width: auto; max-width: 200px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; display: block; }
footer.footer .footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
footer.footer .footer-social { display: flex; gap: 10px; }
footer.footer .footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all .2s; text-decoration: none; }
footer.footer .footer-social a:hover { background: rgba(59,130,246,0.2); transform: translateY(-2px); }
footer.footer .footer-social svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.6); }
footer.footer .footer-social a:hover svg { fill: white; }

/* Footer Columns */
footer.footer .footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.35); margin-bottom: 16px; font-weight: 600; padding: 0; line-height: 1.4; }
footer.footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
footer.footer .footer-col li { margin-bottom: 10px; padding: 0; line-height: 1.4; }
footer.footer .footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; transition: color .2s; line-height: 1.4; }
footer.footer .footer-col a:hover { color: white; }
footer.footer .footer-col .highlight { color: #3b82f6; font-weight: 500; }
footer.footer .footer-col .highlight:hover { color: #60a5fa; }

/* Trust Badges */
footer.footer .footer-trust { padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,0.08); display: grid; grid-template-columns: repeat(4, auto); align-items: center; justify-content: center; gap: 24px 32px; }
footer.footer .trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.45); font-size: 12px; }
footer.footer .trust-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(20,184,166,0.1); display: flex; align-items: center; justify-content: center; }
footer.footer .trust-icon svg { width: 18px; height: 18px; fill: #14b8a6; }

/* Stripe kartice */
footer.footer .footer-stripe { padding: 20px 20px 10px; text-align: center; }
footer.footer .footer-stripe img { max-width: 220px; opacity: 0.6; display: inline-block; }

/* Disclaimer */
footer.footer .footer-disclaimer { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: center; }
footer.footer .footer-disclaimer p { font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.6; max-width: 700px; margin: 0 auto; }

/* Copyright */
footer.footer .footer-bottom { padding: 20px 0; display: flex; flex-direction: column; align-items: center; text-align: center; flex-wrap: wrap; gap: 12px; }
footer.footer .footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
footer.footer .footer-copy a { color: rgba(255,255,255,0.4); text-decoration: none; }
footer.footer .footer-copy a:hover { color: rgba(255,255,255,0.7); }
footer.footer .footer-legal { display: flex; gap: 20px; }
footer.footer .footer-legal a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; }
footer.footer .footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* Footer Responsive */
@media(max-width:900px){
  footer.footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.footer .footer-brand { grid-column: 1/-1; }
}
@media(max-width:600px){
  .nl-form { flex-direction: column; }
  .nl-title { font-size: 22px; }
  footer.footer .footer-grid { grid-template-columns: 1fr; }
  footer.footer .footer-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; justify-items: start; padding: 32px 20px; }
  footer.footer .footer-stripe { text-align: left; padding-left: 15px; }
  footer.footer .footer-disclaimer { text-align: left; }
  footer.footer .footer-disclaimer p { margin: 0; }
  footer.footer .footer-bottom { align-items: flex-start; text-align: left; padding-left: 15px; }
}
