/* =========================================
   FOOTER BASE (LIGHT DEFAULT)
========================================= */

.dws-footer {
  background: #f8fafc;
  color: #1e293b;
  padding: 80px 0 40px;
  transition: background 0.3s, color 0.3s;
}

.dws-footer__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

/* TITLES */
.dws-footer__col h3 {
  color: #0f172a;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

/* TEXT */
.dws-footer__col p {
  line-height: 1.7;
  color: #475569;
}

/* LINKS */
.dws-footer__col ul {
  list-style: none;
  padding: 0;
}

.dws-footer__col ul li {
  margin-bottom: 10px;
}

.dws-footer__col ul li a {
  color: #64748b;
  text-decoration: none;
  transition: 0.25s;
}

.dws-footer__col ul li a:hover {
  color: #0f172a;
}

/* SOCIAL */
.dws-footer__socials {
  margin-top: 20px;
}

.dws-footer__socials a {
  margin-right: 10px;
  color: #0f172a;
  font-weight: 600;
}

/* =========================================
   BOTTOM BAR
========================================= */

.dws-footer__bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;

  text-align: center;
}

/* =========================================
   LANGUAGE SWITCH
========================================= */

.dws-lang-switch {
  position: relative;
}

.dws-lang-btn {
  background: rgba(0,0,0,0.05);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: 0.25s;
}

.dws-lang-btn:hover {
  background: rgba(0,0,0,0.08);
}

/* DROPDOWN */
.dws-lang-dropdown {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);

  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 12px;
  display: none;
  min-width: 200px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 999;
}

.dws-lang-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dws-lang-dropdown li {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.dws-lang-dropdown li:hover {
  background: #f1f5f9;
}

.dws-lang-switch.active .dws-lang-dropdown {
  display: block;
}

/* =========================================
   DARK MODE (FULL FOOTER)
========================================= */

html[data-theme="dark"] .dws-footer {
  background: #020617;
  color: #cbd5f5;
}

html[data-theme="dark"] .dws-footer__col h3 {
  color: #ffffff;
}

html[data-theme="dark"] .dws-footer__col p {
  color: #94a3b8;
}

html[data-theme="dark"] .dws-footer__col ul li a {
  color: #a5b4fc;
}

html[data-theme="dark"] .dws-footer__col ul li a:hover {
  color: #ffffff;
}

html[data-theme="dark"] .dws-footer__socials a {
  color: #ffffff;
}

html[data-theme="dark"] .dws-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* BUTTON DARK */
html[data-theme="dark"] .dws-lang-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

html[data-theme="dark"] .dws-lang-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* DROPDOWN DARK */
html[data-theme="dark"] .dws-lang-dropdown {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}

html[data-theme="dark"] .dws-lang-dropdown li:hover {
  background: rgba(255,255,255,0.08);
}

/* =========================================
   RTL SUPPORT
========================================= */

html[dir="rtl"] .dws-footer__bottom {
  flex-direction: column;
}

html[dir="rtl"] .dws-lang-dropdown {
  left: 50%;
  transform: translateX(-50%);
}

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

@media (max-width: 900px) {

  .dws-footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dws-footer__bottom {
    flex-direction: column;
    gap: 16px;
  }

}