/* Coder theme styles for homepage */

/* Variables - Default to dark mode */
:root {
  --bg: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --primary: #4a9eff;
  --primary-dark: #2d5aa0;
  --border: #404040;
  --code-bg: #2d2d2d;
  --code-text: #ff6b9d;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

/* Default to dark mode */
body {
  --bg: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --primary: #4a9eff;
  --primary-dark: #2d5aa0;
  --border: #404040;
  --code-bg: #2d2d2d;
  --code-text: #ff6b9d;
}

/* Layout */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.content {
  flex: 1;
  background-color: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navigation {
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide the mobile menu toggle */
#menu-toggle {
  display: none;
}

.menu-button {
  display: none;
}

.navigation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

.navigation-item {
  margin: 0;
}

.navigation-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navigation-link:hover {
  color: var(--primary);
}

/* Homepage specific styles */
.container.centered {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
  background-color: var(--bg);
}

.about {
  margin-bottom: 2rem;
}

.avatar {
  margin-bottom: 2rem;
}

.avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.about h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.about h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about ul li {
  margin: 0;
}

.about ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--text);
}

.about ul li a:hover {
  background-color: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.about ul li a i {
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background-color: transparent;
  border-top: none;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  position: relative;
  margin-top: auto;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navigation-list {
    flex-direction: column;
    gap: 1rem;
  }
  
  .about h1 {
    font-size: 2rem;
  }
  
  .about h2 {
    font-size: 1rem;
  }
  
  .about ul {
    gap: 0.5rem;
  }
  
  .about ul li a {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .avatar img {
    width: 120px;
    height: 120px;
  }
} 

/* Dark mode toggle */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  background-color: var(--primary);
  color: var(--bg);
}

.dark-mode-toggle i {
  font-size: 1.2rem;
}

/* Float container for dark mode toggle */
.float-container {
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  position: fixed;
  font-size: 1.6em;
}

.float-container a {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  color: var(--text);
  background-color: var(--bg-secondary);
  border-radius: 0.2rem;
  opacity: 0.5;
  transition: all 0.25s ease-in;
  text-decoration: none;
}

.float-container a:hover,
.float-container a:focus {
  color: var(--primary);
  opacity: 1;
}

.float-container a i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Color scheme classes */
.colorscheme-light {
  --bg: #ffffff;
  --bg-secondary: #f8f8f8;
  --text: #333333;
  --text-secondary: #666666;
  --primary: #2d5aa0;
  --primary-dark: #1e3a5f;
  --border: #e1e1e1;
  --code-bg: #f4f4f4;
  --code-text: #e83e8c;
}

.colorscheme-dark {
  --bg: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --primary: #4a9eff;
  --primary-dark: #2d5aa0;
  --border: #404040;
  --code-bg: #2d2d2d;
  --code-text: #ff6b9d;
} 