/* Common Header, Footer and Menu Styles for Specifys.ai */



/* Header Styles */
.thematic-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

body.dark-mode .thematic-header {
  background: rgba(30, 30, 30, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thematic-header .logo a {
  text-decoration: none;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

body.dark-mode .thematic-header .logo a {
  color: #e0e0e0;
}

.thematic-header .logo a:hover {
  color: #0078d4;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 15px;
  right: 60px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

body.dark-mode .theme-toggle {
  color: #e0e0e0;
}

.theme-toggle:hover {
  color: #0078d4;
}

/* Menu Toggle Button */
.menu-toggle {
  position: fixed;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

body.dark-mode .menu-toggle {
  color: #e0e0e0;
}

.menu-toggle:hover {
  color: #0078d4;
}

/* Header Links Menu */
.header-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 2000;
}

body.dark-mode .header-links {
  background: rgba(30, 30, 30, 0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.header-links.active {
  display: flex;
  width: 200px;
  opacity: 1;
}

.header-links a {
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

body.dark-mode .header-links a {
  color: #e0e0e0;
}

.header-links a:hover {
  color: #0078d4;
  transform: translateX(5px);
}

/* Footer Styles */
footer {
  padding: 20px 10px;
  text-align: center;
  width: 100%;
  color: #333;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode footer {
  color: #e0e0e0;
  background: #1a1a1a;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

body.dark-mode .footer-links a {
  color: #e0e0e0;
}

.footer-links a:hover {
  color: #0078d4;
}

.footer-divider {
  color: #333;
  font-size: 1.2rem;
  font-weight: 300;
}

body.dark-mode .footer-divider {
  color: #e0e0e0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-social a {
  color: #333;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

body.dark-mode .footer-social a {
  color: #e0e0e0;
}

.footer-social a:hover {
  color: #0078d4;
  transform: scale(1.2);
}

.footer-copyright {
  font-size: 0.8rem;
  color: #666;
  margin-top: 1rem;
}

body.dark-mode .footer-copyright {
  color: #999;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background: #005ea2;
  transform: translateY(-2px);
}

.scroll-to-top.visible {
  display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
  .thematic-header {
    padding: 10px 15px;
  }
  
  .thematic-header .logo a {
    font-size: 1.4rem;
  }
  
  .theme-toggle, .menu-toggle {
    font-size: 1.3rem;
    top: 12px;
  }
  
  .theme-toggle {
    right: 50px;
  }
  
  .menu-toggle {
    right: 15px;
  }
  
  .header-links {
    top: 50px;
    right: 15px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .footer-divider {
    font-size: 1rem;
  }
  
  .footer-social a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .thematic-header .logo a {
    font-size: 1.32rem;
  }
  
  .theme-toggle, .menu-toggle {
    font-size: 1.2rem;
    top: 10px;
  }
  
  .theme-toggle {
    right: 45px;
  }
  
  .menu-toggle {
    right: 10px;
  }
  
  .header-links {
    top: 45px;
    right: 10px;
  }
  
  .footer-content {
    gap: 8px;
  }
  
  .footer-links a {
    font-size: 0.75rem;
  }
  
  .footer-divider {
    font-size: 0.9rem;
  }
  
  .footer-social a {
    font-size: 0.9rem;
  }
}

/* Dark Mode Styles for Content */
body.dark-mode {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .content-box {
  background: #2a2a2a;
  color: #e0e0e0;
}

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: #e0e0e0;
}

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

body.dark-mode .btn {
  background: #005ea2;
  color: #ffffff;
}

body.dark-mode .btn:hover {
  background: #004080;
}

body.dark-mode .article-preview {
  background: #2a2a2a;
  border: 1px solid #444;
}

body.dark-mode .article-title {
  color: #e0e0e0;
}

body.dark-mode .article-date,
body.dark-mode .article-intro,
body.dark-mode .reader-count {
  color: #cccccc;
}

body.dark-mode .read-more-btn {
  background: #005ea2;
  color: #ffffff;
}

body.dark-mode .read-more-btn:hover {
  background: #004080;
}

body.dark-mode .track-card {
  background: #2a2a2a;
  border: 1px solid #444;
}

body.dark-mode .track-card h2 {
  color: #e0e0e0;
}

body.dark-mode .track-card p,
body.dark-mode .track-card li {
  color: #cccccc;
}

body.dark-mode .gallery-grid {
  background: #2a2a2a;
}

body.dark-mode .tracks-container {
  background: #2a2a2a;
}

/* Dark Mode for Forms and Inputs */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #555;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* Dark Mode for Tables */
body.dark-mode table {
  background: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode th,
body.dark-mode td {
  border-color: #444;
}

body.dark-mode tr:nth-child(even) {
  background: #333;
}

/* Dark Mode for Code Blocks */
body.dark-mode pre,
body.dark-mode code {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #555;
}

/* Dark Mode for Links */
body.dark-mode a {
  color: #4fc3f7;
}

body.dark-mode a:hover {
  color: #81d4fa;
}

/* Dark Mode for Buttons */
body.dark-mode button {
  background: #005ea2;
  color: #ffffff;
  border: none;
}

body.dark-mode button:hover {
  background: #004080;
}

/* Remove blue focus rings on buttons and header toggles in dark mode */
body.dark-mode .theme-toggle:focus,
body.dark-mode .menu-toggle:focus,
body.dark-mode button:focus,
body.dark-mode a:focus {
  outline: none;
  box-shadow: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .header-links,
  .footer-social a,
  .scroll-to-top {
    transition: none;
  }
}
