﻿/* ===== CSS Variables ===== */
:root {
  --color-bg: #0d0d0d;
  --color-text: #e8e8e8;
  --color-dim: #666;
  --color-accent: #00ff88;
  --color-link: #00ff88;
  --font-mono: 'JetBrains Mono', 'Courier New', 'Lucida Console', monospace;
  --container-width: 800px;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header ===== */
.site-header {
  padding: 2rem 0 1.5rem;
}

.header-line {
  font-size: 0.9rem;
}

.header-home {
  color: var(--color-text);
  font-weight: bold;
}

.header-home:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.header-nav-link {
  color: var(--color-dim);
}

.header-nav-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== Main ===== */
main {
  min-height: calc(100vh - 200px);
  padding: 3rem 0 4rem;
}

/* ===== Terminal blocks ===== */
.terminal {
  width: 100%;
}

.term-hero {
  margin-bottom: 4rem;
}

.ascii-logo {
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--color-accent);
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 2rem;
  overflow-x: auto;
  white-space: pre;
}

.term-block {
  margin-bottom: 3.5rem;
}

.term-line {
  margin-bottom: 0.75rem;
}

.term-prompt {
  color: var(--color-accent);
  user-select: none;
}

.term-cmd {
  color: var(--color-text);
}

.term-output {
  padding-left: 1.5rem;
  color: var(--color-text);
}

.term-key {
  color: var(--color-accent);
}

.term-dim {
  color: var(--color-dim);
}

/* ===== Projects ===== */
.term-project {
  margin-bottom: 1.75rem;
}

.term-project-detail {
  padding-left: 2rem;
  margin-top: 0.4rem;
  color: var(--color-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== Blog posts ===== */
.term-post {
  margin-bottom: 0.5rem;
}

.term-post-title {
  color: var(--color-text);
}

.term-post-title:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.term-more {
  margin-top: 1rem;
}

.term-more a {
  color: var(--color-dim);
}

.term-more a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== Contacts ===== */
.term-contact {
  margin-bottom: 0.4rem;
}

/* ===== Cursor ===== */
.term-cursor-line {
  margin-top: 1rem;
}

.term-cursor {
  color: var(--color-accent);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #1e1e1e;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-dim);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-dim);
  line-height: 1.6;
}

.footer-legal {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* ===== Blog page ===== */
.posts-list {
  list-style: none;
}

.post-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #1e1e1e;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.post-item-title a {
  color: var(--color-text);
}

.post-item-title a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.post-item-meta {
  font-size: 0.8rem;
  color: var(--color-dim);
  margin-bottom: 0.5rem;
}

.post-item-excerpt {
  font-size: 0.9rem;
  color: var(--color-dim);
}

/* ===== Post content ===== */
.post {
  margin-bottom: 4rem;
}

.post-header {
  margin-bottom: 3rem;
}

.post-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--color-dim);
}

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

.post-content h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.post-content h3 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

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

.post-content a {
  color: var(--color-accent);
}

.post-content ul,
.post-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-accent);
  background: #141414;
  padding: 0.1em 0.4em;
}

.post-content pre {
  background: #111;
  border: 1px solid #1e1e1e;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--color-text);
}

.post-content blockquote {
  border-left: 2px solid var(--color-accent);
  padding-left: 1rem;
  color: var(--color-dim);
  margin: 1.5rem 0;
}

/* ===== Post navigation ===== */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e1e1e;
  font-size: 0.85rem;
}

.prev-post,
.next-post {
  color: var(--color-dim);
}

.prev-post:hover,
.next-post:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== App page (Curiosto) ===== */
.app-logo {
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.app-tagline {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.app-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-step {
  display: flex;
  gap: 1rem;
}

.app-decks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-feature-item {
  display: flex;
  gap: 0.75rem;
}

.app-download {
  font-size: 1rem;
  padding: 1rem 0;
}

/* ===== Privacy page ===== */
.privacy-section {
  margin-bottom: 0.5rem;
}

.privacy-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.privacy-date {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.privacy-heading {
  margin-bottom: 0.6rem;
}

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.privacy-list-item {
  display: flex;
  gap: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .ascii-logo {
    font-size: 0.5rem;
  }

  .post-navigation {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .ascii-logo {
    font-size: 0.38rem;
  }

  .footer-links {
    gap: 1rem;
  }
}
