/*
Theme Name: ぼっちの副業精査室 (Botchi Lo-fi Theme)
Author: Antigravity
Description: A hybrid Verge-style grid theme with a deep "Night Lo-fi" aesthetic.
Version: 1.0.0
*/

:root {
  --color-bg: #0c1222;
  /* Deep navy blue for the night atmosphere */
  --color-text: #e6ecf1;
  /* Soft bright text for readability */
  --color-text-muted: #829ab1;
  /* Muted grey-blue */
  --color-accent-orange: #ff7920;
  /* Warm glowing orange */
  --color-accent-green: #10e68a;
  /* Neon subtle green */
  --color-panel: rgba(16, 25, 46, 0.85);
  /* Navy transparent panel */
  --color-border: rgba(148, 163, 184, 0.15);
  /* Navy border */
  --glow-orange: 0 0 15px rgba(255, 121, 32, 0.6), 0 0 35px rgba(255, 121, 32, 0.3);
  --glow-green: 0 0 15px rgba(16, 230, 138, 0.6), 0 0 35px rgba(16, 230, 138, 0.3);
  --glow-panel: 0 10px 40px rgba(4, 6, 12, 0.8), inset 0 0 15px rgba(255, 121, 32, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  position: relative;
}

/* Grainy Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.05;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--color-accent-orange);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: var(--glow-orange);
}

/* --- HEADER --- */
.site-header {
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(to bottom, transparent, var(--color-bg)), url('images/header-bg.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.site-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: var(--glow-orange);
  margin: 0;
  letter-spacing: 2px;
}

.site-description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* --- MAIN LAYOUT (VERGE GRID) --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  padding-bottom: 150px;
  /* Space for footer player */
}

/* Featured Section */
.featured-post {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glow-panel);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-size: 2.5rem;
  margin: 0 0 20px;
  line-height: 1.2;
}

/* Latest Logs Grid */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(255, 126, 51, 0.1);
  border-color: rgba(255, 126, 51, 0.3);
}

.post-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.post-card-content {
  padding: 20px;
}

.post-card-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

/* --- BADGES (DANGER / SAFE) --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-danger {
  color: var(--color-accent-orange);
  border: 1px solid var(--color-accent-orange);
  box-shadow: var(--glow-orange);
}

.badge-danger::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  background: url('images/danger-icon.png') center/contain no-repeat;
}

.badge-safe {
  color: var(--color-accent-green);
  border: 1px solid var(--color-accent-green);
  box-shadow: var(--glow-green);
}

/* --- FOOTER CASSETTE PLAYER --- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(11, 16, 33, 0.95), transparent);
  padding: 20px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1000;
}

.player-container {
  pointer-events: auto;
  background: var(--color-panel);
  border: 1px solid var(--color-accent-orange);
  box-shadow: var(--glow-orange), var(--glow-panel);
  border-radius: 12px;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.cassette-graphic {
  width: 80px;
  height: 50px;
  background: url('images/cassette.png') center/contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 126, 51, 0.5));
}

.player-controls {
  display: flex;
  flex-direction: column;
}

.player-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-accent-orange);
  margin-bottom: 5px;
  text-shadow: 0 0 5px rgba(255, 126, 51, 0.5);
}

.play-btn {
  background: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  padding: 5px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.play-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
}