/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #3d4a61;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

a {
  color: #64b5f6;
  text-decoration: none;
}

a:hover {
  color: #90caf9;
  text-decoration: underline;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: #4d5a71;
  color: #81c784;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Header - Top Navigation */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 1.5rem;
  background-image:
    linear-gradient(135deg, rgba(25, 32, 45, 0.92), rgba(18, 25, 38, 0.92)),
    url('/rocinante-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 8px 8px 0 0;
  z-index: 150;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e4e6eb;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
}

.title-link {
  color: #e4e6eb;
  text-decoration: none;
}

.title-link:hover {
  color: #e4e6eb;
}


.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: #90caf9;
  transition: color 0.2s;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: #64b5f6;
  text-decoration: none;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-image:
    linear-gradient(135deg, rgba(25, 32, 45, 0.92), rgba(18, 25, 38, 0.92)),
    url('/rocinante-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 0 0 8px 8px;
  z-index: 150;
  font-size: 0.875rem;
  color: #90caf9;
}

.login a {
  color: #90caf9;
  transition: color 0.2s;
  font-size: 0.875rem;
  text-decoration: none;
}

.login a:hover {
  color: #64b5f6;
}

.copyright {
  color: #90caf9;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-top {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* Main Container */
.container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(135deg, rgba(25, 32, 45, 0.92), rgba(18, 25, 38, 0.92)),
    url('/rocinante-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 5rem 3rem 2rem 3rem;
}

/* Custom Scrollbar */
.content-scroll::-webkit-scrollbar {
  width: 8px;
}

.content-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 0;
}

.content-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 181, 246, 0.3);
  border-radius: 4px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 181, 246, 0.5);
}

/* Firefox scrollbar */
.content-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 181, 246, 0.3) transparent;
}

@media (max-width: 768px) {
  .content-scroll {
    padding: 8rem 2rem 2rem 2rem;
  }
}

/* Main Page */
.main {
  padding: 2rem 0;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.post {
  border: 2px solid transparent;
  border-left: 2px solid #64b5f6;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border-radius: 8px;
}

.post:hover {
  border: 2px solid #90caf9;
  background: rgba(100, 181, 246, 0.05);
}

.post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-link:hover {
  text-decoration: none;
}

.post-link h3,
.post-link time,
.post-link p {
  text-decoration: none;
}

.post h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #e4e6eb;
}

.post time {
  color: #90caf9;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.75rem;
}

.post p {
  color: #b3b8c3;
  line-height: 1.6;
}

/* Blog Post Page */
.post-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.post-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #64b5f6;
  padding-bottom: 1rem;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e4e6eb;
}

.post-date {
  color: #90caf9;
  font-size: 1rem;
}

.post-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #e4e6eb;
}

.post-content h1 {
  font-size: 2rem;
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.post-content code {
  font-family: 'Courier New', Courier, monospace;
  background: #4d5a71;
  color: #81c784;
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: #2d3548;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid #64b5f6;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #b3b8c3;
}

/* About Page */
.about-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.about-main h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #e4e6eb;
}

.about-main p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b3b8c3;
}

/* Hardware Page */
.hardware-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.hardware-main h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #e4e6eb;
}

.hardware-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 1200px) {
  .header {
    left: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .content {
    padding: 2rem 1.5rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-content {
    font-size: 1rem;
  }
}
