/* ────────── OSNOVA STRANI ────────── */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #e0f2f7 0%, #c1e0e7 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease-in-out;
}
body.dark-mode {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #e2e8f0;
}

/* ────────── GUMBA ZA MENI ────────── */
.menu-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  background-color: #ffffff;
  border-radius: 9999px;
  padding: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, background-color 0.3s;
  z-index: 100;
}
body.dark-mode .menu-button {
  background-color: #4a5568;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.menu-button:hover {
  transform: scale(1.05);
}
.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transition: transform 0.3s ease;
}
.menu-icon.open {
  transform: rotate(90deg);
}
.menu-icon-line {
  width: 100%;
  height: 2px;
  background-color: #3b82f6;
  border-radius: 9999px;
  transition: all 0.3s ease;
}
body.dark-mode .menu-icon-line {
  background-color: #90cdf4;
}
.menu-icon-line:nth-child(1).open {
  transform: translateY(7px) rotate(45deg);
}
.menu-icon-line:nth-child(2).open {
  opacity: 0;
}
.menu-icon-line:nth-child(3).open {
  transform: translateY(-7px) rotate(-45deg);
}

/* ────────── KARTICA S CITATOM ────────── */
.quote-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  width: 90%;
  margin: 1rem;
  transition: all 0.3s ease;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}
body.dark-mode .quote-card {
  background-color: #2d3748;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
              0 4px 6px -2px rgba(0, 0, 0, 0.15);
}
.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: #334155;
  line-height: 1.6;
  transition: color 0.3s;
  white-space: pre-line;
}
body.dark-mode .quote-text {
  color: #cbd5e0;
}
.quote-author {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3b82f6;
}
body.dark-mode .quote-author {
  color: #90cdf4;
}

/* ────────── GUMBI ZA DELJENJE ────────── */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.share-button {
  background-color: #f3f4f6;
  border-radius: 9999px;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #4b5563;
  border: none;
  font-size: 1.2rem;
}
body.dark-mode .share-button {
  background-color: #4a5568;
  color: #e2e8f0;
}
.share-button:hover {
  transform: scale(1.1);
}
.share-button.facebook:hover {
  color: #1877f2;
  background-color: #e7f3ff;
}
.share-button.twitter:hover {
  color: #1da1f2;
  background-color: #e8f5fe;
}
.share-button.email:hover {
  color: #d44638;
  background-color: #fde8e8;
}
.share-button.whatsapp:hover {
  color: #25d366;
  background-color: #e2f7ea;
}
.share-button.copy:hover {
  color: #3b82f6;
  background-color: #ebf2ff;
}
body.dark-mode .share-button.facebook:hover {
  background-color: #1a365d;
}
body.dark-mode .share-button.twitter:hover {
  background-color: #1a1a1a;
}
body.dark-mode .share-button.email:hover {
  background-color: #3a0e0e;
}
body.dark-mode .share-button.whatsapp:hover {
  background-color: #0d3a1d;
}
body.dark-mode .share-button.copy:hover {
  background-color: #1a365d;
}

/* ────────── STRANSKI MENI ────────── */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 80vw;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out, background-color 0.3s, box-shadow 0.3s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
}
body.dark-mode .sidebar {
  background-color: #1a202c;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}
.sidebar.open {
  right: 0;
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.sidebar-header h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #3b82f6;
  transition: color 0.3s;
}
body.dark-mode .sidebar-header h2 {
  color: #90cdf4;
}
.close-button {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
}
body.dark-mode .close-button {
  color: #a0aec0;
}
.close-button:hover {
  color: #334155;
}
body.dark-mode .close-button:hover {
  color: #e2e8f0;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}
.sidebar-section-title {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
body.dark-mode .sidebar-section-title {
  color: #a0aec0;
}
.sidebar-section-title i {
  color: #3b82f6;
  transition: color 0.3s;
}
body.dark-mode .sidebar-section-title i {
  color: #90cdf4;
}

.sidebar-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
/* Jezikovni gumbi */
.sidebar-button.lang-button {
  background-color: #f3f4f6;
  color: #4b5563;
}
body.dark-mode .sidebar-button.lang-button {
  background-color: #4a5568;
  color: #e2e8f0;
}
.sidebar-button.lang-button:hover {
  background-color: #e5e7eb;
}
body.dark-mode .sidebar-button.lang-button:hover {
  background-color: #606f85;
}
.sidebar-button.lang-button.selected {
  background-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}
body.dark-mode .sidebar-button.lang-button.selected {
  background-color: #63b3ed;
  box-shadow: 0 4px 6px rgba(99, 179, 237, 0.3);
}

/* Gumb za temo */
.sidebar-button.theme-button {
  background-color: #f3f4f6;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
body.dark-mode .sidebar-button.theme-button {
  background-color: #4a5568;
  color: #e2e8f0;
}
.sidebar-button.theme-button:hover {
  background-color: #e5e7eb;
}
body.dark-mode .sidebar-button.theme-button:hover {
  background-color: #606f85;
}

.contact-info {
  font-size: 1rem;
  color: #4b5563;
  margin-top: 1rem;
  transition: color 0.3s;
}
body.dark-mode .contact-info {
  color: #cbd5e0;
}
.contact-info a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
body.dark-mode .contact-info a {
  color: #90cdf4;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* Prekrivni sloj za meni */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Obvestilo o kopiranju */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transition: all 0.3s ease;
}
.notification.success {
  background-color: #ffffff;
  color: #334155;
}
body.dark-mode .notification.success {
  background-color: #2d3748;
  color: #e2e8f0;
}
.notification i {
  font-size: 1.2rem;
}
.notification .fa-check-circle {
  color: #25D366;
}