/* Blog Styles - OS2 Studio (White Journal Theme) */
:root {
  --primary-amber: #f5ad11;
  --bg-white: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --border-light: #eeeeee;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
  background-color: var(--bg-white);
  color: var(--text-main);
  font-family: 'Outfit', 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- NEW JOURNAL HEADER --- */
.journal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  background: #fff;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.journal-logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: #000;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.journal-logo span {
  color: var(--primary-amber);
  font-weight: 400;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.cat-link {
  text-align: center;
  padding: 15px 0;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-right: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.cat-link:last-child {
  border-right: none;
}

.cat-link:hover {
  background: #fafafa;
  color: var(--primary-amber);
}

.header-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 5px 15px;
  width: 300px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  padding: 5px;
  font-family: inherit;
  font-size: 0.9rem;
}

.search-box i {
  color: var(--text-muted);
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-magazine {
  padding: 40px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  min-height: 500px;
}

.featured-main {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.featured-main:hover img {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  width: 100%;
  color: #fff;
}

.featured-label {
  display: inline-block;
  background: var(--primary-amber);
  color: #000;
  padding: 5px 15px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 20px;
  border-radius: 2px;
}

.featured-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* --- BLOG GRID --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
  padding-bottom: 100px;
}

.blog-item {
  background: #fff;
  border-radius: 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 30px;
  transition: var(--transition-smooth);
}

.blog-item:hover {
  transform: translateY(-5px);
}

.blog-item-img {
  width: 100%;
  height: 250px;
  margin-bottom: 25px;
  overflow: hidden;
}

.blog-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.blog-meta span {
  color: var(--primary-amber);
  font-weight: 700;
  margin-right: 10px;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.read-more {
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--primary-amber);
  display: inline-block;
  transition: var(--transition-smooth);
}

.read-more:hover {
  padding-right: 10px;
}

/* --- POST PAGE --- */
.post-header {
  padding: 80px 0 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.post-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 20px 0;
}

.post-banner-container {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  height: 600px;
}

.post-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content-area {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.post-body {
  font-size: 1.2rem;
  color: #333;
}

.post-body h2 {
  font-size: 2.2rem;
  margin: 50px 0 20px;
}

.post-body p {
  margin-bottom: 25px;
}

/* --- COMMENTS --- */
.comment-section {
  border-top: 1px solid var(--border-light);
  margin-top: 80px;
  padding-top: 60px;
}

.comment-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: #fdfdfd;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.submit-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background: var(--primary-amber);
  color: #000;
}

/* --- SIDEBAR TAB (Subscribe) --- */
.side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  background: var(--primary-amber);
  color: #000;
  padding: 10px 20px;
  writing-mode: vertical-lr;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  z-index: 100;
  border-radius: 8px 0 0 8px;
  transition: var(--transition-smooth);
}

.side-tab:hover {
  padding-right: 30px;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .category-nav { grid-template-columns: repeat(3, 1fr); }
  .cat-link:nth-child(4), .cat-link:nth-child(5) { border-top: 1px solid var(--border-light); }
  .search-box { width: 100%; margin-top: 20px; }
  .header-sub { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-top { flex-direction: column; align-items: flex-start; gap: 15px; }
  .journal-logo { font-size: 1.2rem; }
  .category-nav { grid-template-columns: repeat(2, 1fr); }
  .cat-link:nth-child(3) { border-top: 1px solid var(--border-light); }
  .header-sub { width: 100%; }
  .search-box { width: 100%; margin-top: 15px; }
  .post-header h1 { font-size: 2.5rem; }
  .featured-title { font-size: 1.8rem; }
  .featured-overlay { padding: 30px; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .journal-logo { font-size: 1.1rem; }
  .featured-title { font-size: 1.5rem; }
  .blog-title { font-size: 1.3rem; }
  .featured-overlay { padding: 20px; }
  .footer-container { flex-direction: column; text-align: center; justify-content: center; }
  .blog-item-img { height: 200px; }
}
