/*
 * Alex Litzenberger's Website - Shared Styles
 * Dark theme with blue accent color
 */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Container for content pages */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Typography */
h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
  border-bottom: 2px solid #333;
  padding-bottom: 0.3em;
}

h2 {
  font-size: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.2em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

/* Links */
a {
  color: #66b3ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Code blocks */
code {
  background-color: #1a1a1a;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
}

pre {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #333;
  padding-left: 1em;
  margin-left: 0;
  color: #aaa;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

table th, table td {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: left;
}

table th {
  background-color: #1a1a1a;
  font-weight: bold;
}

table tr:nth-child(even) {
  background-color: #0a0a0a;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Home button - fixed position */
.home-button {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background-color: #66b3ff;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  z-index: 1000;
}

.home-button:hover {
  background-color: #5599dd;
  color: #000;
  text-decoration: none;
}

/* Blog button - next to home */
.blog-button {
  position: fixed;
  top: 20px;
  right: 100px;
  padding: 10px 20px;
  background-color: #66b3ff;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  z-index: 1000;
}

.blog-button:hover {
  background-color: #5599dd;
  color: #000;
  text-decoration: none;
}

/* Back link */
.back-link {
  color: #66b3ff;
  text-decoration: none;
  font-size: 1.1em;
  display: inline-block;
  margin-bottom: 2em;
}

.back-link:hover {
  text-decoration: underline;
}

/* Navigation links at bottom of pages */
.nav-links {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #333;
}

.home-link {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #333;
}

/* Card/Project styles */
.card {
  background-color: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5em;
  transition: border-color 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
  cursor: pointer;
}

.card:hover {
  border-color: #66b3ff;
  text-decoration: none;
}

.card h2 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: #66b3ff;
  border-bottom: none;
}

.card p {
  margin-bottom: 0;
  color: #aaa;
}

.card-date {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.5em;
}

/* Post list styles */
.posts {
  list-style: none;
  padding: 0;
}

.post-item {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #222;
}

.post-title {
  font-size: 1.3em;
  margin-bottom: 0.3em;
}

.post-title a {
  color: #fff;
}

.post-title a:hover {
  color: #66b3ff;
}

.post-date {
  color: #888;
  font-size: 0.9em;
}

.post-metadata {
  color: #888;
  font-size: 0.9em;
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #222;
}

/* Footnote styles */
.footnotes {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #333;
  font-size: 0.9em;
  color: #aaa;
}

.footnotes ol {
  padding-left: 1.5em;
}

.footnotes li {
  margin-bottom: 0.5em;
}

.footnote-ref,
.footnote-backref {
  color: #66b3ff;
  text-decoration: none;
}

.footnote-ref:hover,
.footnote-backref:hover {
  text-decoration: underline;
}

.footnote-backref {
  margin-left: 0.3em;
}

/* Joke styles */
.jokes {
  list-style: none;
  padding: 0;
}

.joke-item {
  margin-bottom: 2em;
  padding: 1.5em;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #0a0a0a;
  transition: background-color 0.3s ease;
}

.joke-item:hover {
  background-color: #1a1a1a;
}

.joke-number {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 0.5em;
}

.joke-setup {
  font-size: 1.2em;
  margin-bottom: 1em;
  line-height: 1.5;
}

.punchline-container {
  margin-top: 1em;
}

.reveal-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.reveal-button:hover {
  background-color: #444;
}

.reveal-button:active {
  background-color: #222;
}

.punchline {
  display: none;
  margin-top: 1em;
  padding: 1em;
  background-color: #1a1a1a;
  border-left: 4px solid #66b3ff;
  border-radius: 4px;
  font-size: 1.1em;
  animation: fadeIn 0.3s ease;
}

.punchline.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Projects/Other section */
.projects {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .home-button,
  .blog-button {
    position: static;
    display: inline-block;
    margin: 10px 5px 20px 0;
  }

  .nav-buttons {
    padding: 10px 20px;
  }

  h1 {
    font-size: 1.6em;
  }

  .container {
    padding: 15px;
  }
}

/* Homepage specific styles */
.home-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  text-align: center;
}

.home-centered h1 {
  font-size: 2.5em;
  margin-bottom: 0.3em;
  border-bottom: none;
}

.home-centered p {
  font-size: 1.2em;
  margin-top: 0;
  color: #ccc;
}

.home-centered a {
  color: #fff;
  font-size: 1.2em;
  margin-top: 0.8em;
  display: block;
}

.home-centered a:hover {
  color: #66b3ff;
}
