/* 
 * JimiLand Simple CSS
 * Minimalist black and white theme
 */

/* Core variables */
:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #ffffff;
  --link-color: #ffffff;
  --border-color: #333333;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --navbar-height: 70px;
}

/* Light theme */
body.light-theme {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #111111;
  --link-color: #111111;
  --border-color: #dddddd;
}

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

/* Simple body styling */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Content container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Links */
a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Clean navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  margin-left: 60px;
}

.nav-link {
  margin-right: 15px;
  font-size: 1rem;
  padding: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
}

/* Main content */
.center-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-content {
  padding-top: calc(var(--navbar-height) + 20px);
  min-height: calc(100vh - var(--navbar-height));
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Simple archive styling */
.archive {
  margin: 40px auto;
  text-align: center;
  max-width: 600px;
}

.view-archive {
  text-align: center;
  margin: 50px auto 70px;
  width: 100%;
}

.view-archive a {
  font-size: 1.2rem;
  padding: 8px 16px;
  border: 1px solid var(--text-color);
  transition: all 0.3s ease;
}

.view-archive a:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.archive-header {
  margin: 40px 0 20px;
}

.archive-header h1 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.article-item {
  margin: 40px auto;
  max-width: 600px;
  padding: 20px;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.article-date {
  font-size: 1rem;
  color: #999;
  margin-bottom: 5px;
}

/* Post page styling */
.post {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

h1.post-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.post-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 30px;
}

.post-content {
  line-height: 1.8;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.article-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h1, 
.post-content h2, 
.post-content h3 {
  margin: 30px 0 15px;
  font-weight: 400;
}

/* Preserve calendar functionality */
.calendar-container {
  margin: 40px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #333;
}

.calendar-day {
  background: #000;
  min-height: 60px;
  padding: 5px;
}

.day-number {
  font-size: 0.8rem;
  font-weight: 600;
}

.gig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.gig-dot.upcoming {
  background: #fff;
}

.gig-dot.past {
  background: #666;
}

/* Preserve song tracker functionality */
.song-tracker-container {
  margin: 40px 0;
}

.song-tracker-header {
  margin-bottom: 20px;
}

.songs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

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

.song-details-row td {
  padding: 0;
}

.concert-entries {
  padding: 10px 20px;
  background: #111;
}

.concert-entry {
  padding: 5px 0;
  border-bottom: 1px solid #222;
}

/* Filter tabs for gigs/songs */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-tab {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 5px 10px;
  cursor: pointer;
}

.filter-tab:hover {
  border-color: var(--text-color);
}

.filter-tab.active {
  border-color: var(--text-color);
  font-weight: 600;
}

.view-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.view-tab {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 5px 10px;
  cursor: pointer;
}

.view-tab:hover {
  border-color: var(--text-color);
}

.view-tab.active {
  border-color: var(--text-color);
  font-weight: 600;
}

/* Latest posts on homepage */
.latest-posts {
  margin: 40px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 400;
  margin: 40px 0 25px;
  letter-spacing: 0.5px;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.post-card {
  margin: 30px auto;
  padding: 25px 15px;
  width: 100%;
  max-width: 600px;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.post-date {
  font-size: 1rem;
  color: #999;
  margin-bottom: 5px;
}

/* Utility classes */
.hidden {
  display: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    margin-right: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    text-align: center;
  }
  
  .nav-container {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
  }

  .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
  }
}

/* Light theme support */
body.light-theme {
  --bg-color: #ffffff;
  --text-color: #000000;
  --border-color: #dddddd;
}
