/* ================================
   GLOBAL STYLES
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
.site-header {
  text-align: center;
  padding: 20px 15px;
  background-color: #111;
  color: #fff;
}

.site-header .logo {
  max-width: 150px;
  display: block;
  margin: 0 auto 10px auto;
}

/* NAVIGATION */
.site-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  background-color: #222;
  flex-wrap: wrap;
}

.site-nav ul li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  background-color: #007bff;
}

/* MAIN CONTENT */
.site-main {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 15px;
}

.site-main h2 {
  margin-bottom: 15px;
  color: #111;
}

.site-main p, .site-main li {
  margin-bottom: 15px;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 15px;
  background-color: #222;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 8px 15px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

/* ================================
   COOKIE POPUP
================================= */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 320px;
  max-width: 90%;
  padding: 20px 25px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
}

.cookie-content p {
  margin: 0;
  line-height: 1.5;
}

.cookie-link {
  color: #007bff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 80px;
}

.cookie-btn.accept {
  background-color: #007bff;
  color: #fff;
}

.cookie-btn.accept:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.cookie-btn.reject {
  background-color: #f0f0f0;
  color: #333;
}

.cookie-btn.reject:hover {
  background-color: #d9d9d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ================================
   SITE SETTINGS PANEL
================================= */
#site-settings {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
}

.settings-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.settings-panel {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 20px;
  margin-top: 10px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.settings-panel.hidden {
  display: none;
}

.setting-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* DARK MODE */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .site-header,
body.dark-mode .site-nav ul,
body.dark-mode .site-footer,
body.dark-mode .cookie-popup,
body.dark-mode .settings-panel {
  background-color: #1f1f1f;
  color: #f1f1f1;
}

body.dark-mode a,
body.dark-mode .cookie-link,
body.dark-mode .btn {
  color: #4da6ff;
}

body.dark-mode .btn {
  background-color: #4da6ff;
}

body.dark-mode .btn:hover {
  background-color: #1a8cff;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .cookie-popup {
    width: 90%;
    right: 5%;
    bottom: 15px;
    padding: 15px 20px;
  }
  
  .cookie-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  #site-settings {
    bottom: 15px;
    right: 15px;
  }
}
