/* ===================================================
   MINEN - DARK ACADEMIA & WHIMSICAL ECOSYSTEM
   Color Palette: Deep Purple, Vintage Parchment, Gold
   =================================================== */

:root {
  --bg-primary: #120b18;
  --bg-secondary: #1c1226;
  --bg-card: #251833;
  --accent-purple: #4a2860;
  --accent-gold: #c9a054;
  --text-main: #e8e3ed;
  --text-muted: #a69ab3;
  --border-color: #3d2b50;
  --font-serif: 'Georgia', serif;
  --font-mono: 'Courier New', monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-serif);
  line-height: 1.6;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Header Section */
header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--accent-purple);
}

.header-art img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.subtitle-top {
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-top: 1rem;
}

h1.site-title {
  font-size: 2.8rem;
  letter-spacing: 2px;
  color: var(--text-main);
  margin: 0.3rem 0;
}

.subtitle-bottom {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Navigation - Mobile (Not Fixed) */
nav.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

nav.main-nav a {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
}

/* 3-Column Layout */
.layout-container {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 20px;
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1rem;
}

@media (max-width: 900px) {
  .layout-container {
    grid-template-columns: 1fr;
  }
}

/* Sidebar & Cards */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  word-break: break-word;
}

.card-title {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.4rem;
}

/* Main Content Column */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Music Player Widget */
.music-player-widget {
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.player-controls button {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-size: 1.1rem;
  cursor: pointer;
  margin: 0 4px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Portfolio Filters */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-gold);
}

/* Footer Section */
footer {
  background-color: var(--accent-purple);
  color: var(--text-main);
  margin-top: 3rem;
  padding: 2rem 1rem 1rem 1rem;
  border-top: 2px solid var(--accent-gold);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
