﻿/* Dark Mode Styles */

/* Theme toggle button styling */
.theme-toggle-container {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  width: 100%;
}

/* On desktop, make sure the toggle stays in the sidebar */
@media (min-width: 992px) {
  #sideNav .navbar-collapse {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .theme-toggle-container {
    margin-top: auto;
    padding-bottom: 2rem;
  }
}

.theme-toggle-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Saira Extra Condensed', serif;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.theme-toggle-btn i {
  font-size: 1.2rem;
}

/* Dark mode color variables */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography in dark mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f5f5f5;
}

body.dark-mode .text-primary {
  color: #ff8c61 !important;
}

body.dark-mode a {
  color: #ff8c61;
}

body.dark-mode a:hover,
body.dark-mode a:focus,
body.dark-mode a:active {
  color: #ff6b3d;
}

/* Sidebar in dark mode */
body.dark-mode #sideNav {
  background-color: #2d2d2d !important;
}

body.dark-mode .navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .navbar-dark .navbar-nav .nav-link:hover {
  color: #ff8c61;
}

/* Sections in dark mode */
body.dark-mode section.resume-section {
  border-bottom: 1px solid #333;
  background-color: #1a1a1a;
}

/* Social icons in dark mode */
body.dark-mode .list-social-icons a {
  color: #b0b0b0;
}

body.dark-mode .list-social-icons a:hover {
  color: #ff8c61;
}

body.dark-mode .list-social-icons a .fa-circle {
  color: #404040;
}

/* Subheadings in dark mode */
body.dark-mode .subheading {
  color: #b0b0b0;
}

/* Resume content in dark mode */
body.dark-mode .resume-content li {
  color: #d0d0d0;
}

body.dark-mode p {
  color: #c0c0c0;
}

/* Gallery thumbnails in dark mode */
body.dark-mode .thumbnail {
  background-color: transparent;
  border: none;
}

body.dark-mode .caption p {
  color: #b0b0b0;
}

/* iframe styling in dark mode */
body.dark-mode .resumeframe {
  background-color: transparent;
  border: none;
}

body.dark-mode .iframe {
  background-color: #ffffff;
}

/* Adjust profile image border in dark mode */
body.dark-mode #sideNav .navbar-brand .img-profile {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Theme toggle button in dark mode */
body.dark-mode .theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Ensure smooth transitions */
body,
h1, h2, h3, h4, h5, h6,
.text-primary,
a,
section.resume-section,
.list-social-icons a,
.subheading,
.thumbnail,
.resumeframe {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
