/* ============================================================
   TORIBOX — Blog Styles (extends main styles.css)
   ============================================================ */

/* ---------- BLOG PAGE HEADER ---------- */
.blog-page-header {
  padding: 140px 0 60px;
  background: radial-gradient(ellipse at 60% 0%, rgba(255,106,0,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(255,106,0,.04) 0%, transparent 50%),
              #0B0F19;
  text-align: center;
}
.blog-page-header h1 {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}
.blog-page-header h1 span { color: #FF6A00; }
.blog-page-header p {
  font-size: 1.1rem;
  color: #9CA3AF;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Search bar */
.blog-search {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}
.blog-search input {
  flex: 1;
  padding: 14px 20px;
  background: #151B28;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px 0 0 12px;
  color: #fff;
  font-size: .95rem;
  outline: none;
  transition: border-color .25s;
}
.blog-search input::placeholder { color: #6B7280; }
.blog-search input:focus { border-color: #FF6A00; }
.blog-search button {
  padding: 14px 22px;
  background: linear-gradient(135deg,#FF6A00,#FF8533);
  border: none;
  border-radius: 0 12px 12px 0;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .25s;
}
.blog-search button:hover { opacity: .9; }

/* ---------- CATEGORIES FILTER ---------- */
.blog-categories {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.blog-categories .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: #9CA3AF;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
}
.cat-btn:hover, .cat-btn.active {
  background: rgba(255,106,0,.12);
  border-color: #FF6A00;
  color: #FF6A00;
}

/* ---------- FEATURED POST ---------- */
.featured-section { padding: 60px 0 0; }
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FF6A00;
  margin-bottom: 20px;
}
.featured-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF6A00;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #141B27;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  text-decoration: none;
  color: inherit;
}
.featured-card:hover {
  border-color: rgba(255,106,0,.3);
  transform: translateY(-4px);
}
.featured-card-img {
  position: relative;
  height: 380px;
  overflow: hidden;
}
.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.featured-card:hover .featured-card-img img { transform: scale(1.04); }
.featured-card-img .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,15,25,.3) 0%, transparent 60%);
}

.featured-card-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-category {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255,106,0,.12);
  border: 1px solid rgba(255,106,0,.25);
  color: #FF6A00;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.featured-card-body h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.featured-card-body p {
  font-size: .95rem;
  color: #9CA3AF;
  line-height: 1.7;
  margin-bottom: 28px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .8rem;
  color: #6B7280;
  margin-bottom: 28px;
}
.post-meta .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg,#FF6A00,#FF8533);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.post-meta .dot-sep { color: rgba(255,255,255,.15); }
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg,#FF6A00,#FF8533);
  color: #fff;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .25s, transform .25s;
  align-self: flex-start;
}
.read-more-btn:hover { opacity: .9; transform: translateX(3px); }

/* ---------- BLOG GRID ---------- */
.blog-grid-section { padding: 60px 0 100px; }
.blog-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.blog-grid-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #141B27;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,106,0,.25);
}
.blog-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-img .card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255,106,0,.9);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card-body p {
  font-size: .875rem;
  color: #9CA3AF;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: #6B7280;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 16px;
  margin-top: auto;
}
.blog-card-footer .read-time {
  color: #FF6A00;
  font-weight: 600;
}

/* ---------- NEWSLETTER CTA ---------- */
.blog-newsletter {
  background: radial-gradient(ellipse at 50% 50%, rgba(255,106,0,.1) 0%, transparent 70%),
              #141B27;
  border: 1px solid rgba(255,106,0,.15);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  margin: 0 0 80px;
}
.blog-newsletter h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.blog-newsletter p {
  color: #9CA3AF;
  margin-bottom: 28px;
}
.blog-newsletter .waitlist-form {
  max-width: 460px;
  margin: 0 auto;
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.post-hero {
  padding: 140px 0 60px;
  background: radial-gradient(ellipse at 60% 0%, rgba(255,106,0,.07) 0%, transparent 60%), #0B0F19;
}
.post-hero .container { max-width: 860px; }
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: #6B7280;
  margin-bottom: 24px;
}
.post-breadcrumb a { color: #FF6A00; transition: opacity .2s; }
.post-breadcrumb a:hover { opacity: .8; }
.post-breadcrumb span { color: rgba(255,255,255,.2); }

.post-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.post-hero .post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .85rem;
  color: #6B7280;
  flex-wrap: wrap;
}
.post-hero .post-meta .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg,#FF6A00,#FF8533);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}

.post-cover {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.post-cover img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

/* Post body */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.post-body p {
  font-size: 1.05rem;
  color: #D1D5DB;
  line-height: 1.85;
  margin-bottom: 28px;
}
.post-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 3px solid #FF6A00;
}
.post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 16px;
}
.post-body ul, .post-body ol {
  margin: 0 0 28px 24px;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li {
  font-size: 1.05rem;
  color: #D1D5DB;
  line-height: 1.8;
  margin-bottom: 10px;
}
.post-body blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: rgba(255,106,0,.05);
  border-left: 4px solid #FF6A00;
  border-radius: 0 12px 12px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #E5E7EB;
  line-height: 1.7;
}
.post-body .callout {
  background: #141B27;
  border: 1px solid rgba(255,106,0,.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.post-body .callout .callout-icon { font-size: 1.4rem; flex-shrink: 0; }
.post-body .callout p { margin: 0; font-size: .95rem; color: #9CA3AF; }
.post-body strong { color: #fff; font-weight: 700; }

/* Share bar */
.post-share {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 24px 0;
  margin: 0 0 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-share span {
  font-size: .85rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #9CA3AF;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
}
.share-btn:hover {
  background: rgba(255,106,0,.1);
  border-color: #FF6A00;
  color: #FF6A00;
}

/* Related posts */
.related-posts {
  padding: 0 24px 100px;
  max-width: 860px;
  margin: 0 auto;
}
.related-posts h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-card {
  background: #141B27;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 16px;
  padding: 16px;
  transition: border-color .25s, transform .25s;
}
.related-card:hover {
  border-color: rgba(255,106,0,.25);
  transform: translateY(-3px);
}
.related-card img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-card-info { flex: 1; }
.related-card-info .cat {
  font-size: .65rem;
  font-weight: 700;
  color: #FF6A00;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.related-card-info h5 {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
}
.related-card-info span {
  font-size: .75rem;
  color: #6B7280;
}

/* ---------- BLOG PREVIEW SECTION (homepage) ---------- */
.blog-preview-section { padding: 100px 0; }
.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.blog-preview-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.blog-preview-header p {
  font-size: .95rem;
  color: #6B7280;
  margin-top: 4px;
}
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid rgba(255,106,0,.4);
  border-radius: 50px;
  color: #FF6A00;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
  white-space: nowrap;
}
.view-all-btn:hover {
  background: rgba(255,106,0,.1);
  border-color: #FF6A00;
}

/* ---------- PLACEHOLDER IMAGES (gradient covers) ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.img-ph-1 { background: linear-gradient(135deg, #1a0a00, #3d1500, #FF6A00); }
.img-ph-2 { background: linear-gradient(135deg, #0a0a1a, #150040, #6A00FF); }
.img-ph-3 { background: linear-gradient(135deg, #001a0a, #004020, #00C853); }
.img-ph-4 { background: linear-gradient(135deg, #1a000a, #400015, #FF0055); }

/* ============================================================
   RESPONSIVE — BLOG
   ============================================================ */
@media(max-width:1024px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-img { height: 280px; }
  .featured-card-body { padding: 32px; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}

@media(max-width:768px) {
  .blog-page-header { padding: 110px 0 48px; }
  .blog-page-header h1 { font-size: 2rem; }
  .post-hero h1 { font-size: 1.9rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .blog-preview-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-newsletter { padding: 40px 24px; }
  .blog-newsletter .waitlist-form { flex-direction: column; gap: 12px; }
  .blog-newsletter .waitlist-form input { border-radius: 12px; }
  .blog-newsletter .waitlist-form button { border-radius: 12px; width: 100%; }
  .post-body h2 { font-size: 1.3rem; }
}

@media(max-width:480px) {
  .blog-search { flex-direction: column; gap: 12px; }
  .blog-search input,
  .blog-search button { border-radius: 12px; width: 100%; }
}
