/*
Theme Name: BizBazaar
Theme URI: https://example.com/bizbazaar
Author: Custom
Author URI: https://example.com
Description: BT Bazaar जैसी हिंदी बिजनेस न्यूज़ थीम। पर्सनल फाइनेंस, शेयर बाज़ार, टेक्नोलॉजी आदि के लिए।
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bizbazaar
Tags: news, business, hindi, custom-menu, featured-images, responsive
*/

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== TOP BAR ==================== */
.bb-topbar {
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  padding: 6px 16px;
}

.bb-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bb-topbar-links a {
  color: #ccc;
  margin-right: 16px;
  transition: color 0.2s;
}

.bb-topbar-links a:hover,
.bb-topbar-links a.active {
  color: #ff6b6b;
}

.bb-topbar-date {
  color: #999;
}

/* ==================== HEADER ==================== */
.bb-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bb-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bb-logo-badge {
  background: #c41e3a;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 4px;
}

.bb-logo-text {
  line-height: 1.2;
}

.bb-logo-name {
  font-size: 22px;
  font-weight: 700;
  color: #c41e3a;
}

.bb-logo-tagline {
  font-size: 10px;
  color: #666;
}

.bb-search {
  flex: 1;
  max-width: 400px;
  display: none;
}

@media (min-width: 640px) {
  .bb-search {
    display: block;
  }
}

.bb-search form {
  position: relative;
}

.bb-search input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 40px 8px 16px;
  font-size: 14px;
  outline: none;
}

.bb-search input:focus {
  border-color: #c41e3a;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.bb-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
}

/* ==================== CATEGORY NAV ==================== */
.bb-nav {
  border-top: 1px solid #f0f0f0;
  background: #fff;
  overflow-x: auto;
}

.bb-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.bb-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  color: #333;
  transition: all 0.2s;
}

.bb-nav a:hover {
  background: #f5f5f5;
  color: #c41e3a;
}

.bb-nav a.current-menu-item,
.bb-nav a.active {
  background: #c41e3a;
  color: #fff;
}

/* ==================== MAIN CONTENT ==================== */
.bb-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px;
}

.bb-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c41e3a;
  display: inline-block;
}

/* Featured + Sidebar */
.bb-featured-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .bb-featured-row {
    grid-template-columns: 2fr 1fr;
  }
}

.bb-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.bb-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bb-card-large {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .bb-card-large {
    flex-direction: row;
  }
  .bb-card-large .bb-card-img {
    width: 50%;
  }
  .bb-card-large .bb-card-body {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.bb-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
}

.bb-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bb-card:hover .bb-card-img img {
  transform: scale(1.05);
}

.bb-card-body {
  padding: 16px;
}

.bb-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: #c41e3a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bb-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.bb-card-large .bb-card-title {
  font-size: 22px;
}

.bb-card-title:hover {
  color: #c41e3a;
}

.bb-card-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bb-card-large .bb-card-excerpt {
  -webkit-line-clamp: 3;
}

.bb-card-time {
  font-size: 12px;
  color: #999;
  margin-top: auto;
}

/* Side news */
.bb-side-news .bb-side-item {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.bb-side-news .bb-side-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.bb-side-news .bb-side-item h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}

.bb-side-news .bb-side-item h4:hover {
  color: #c41e3a;
}

/* News Grid */
.bb-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .bb-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bb-news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Short Videos */
.bb-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .bb-videos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bb-video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.bb-video-thumb {
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bb-video-play {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-video-play svg {
  width: 20px;
  height: 20px;
  fill: #c41e3a;
  margin-left: 2px;
}

.bb-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}

.bb-video-body {
  padding: 12px;
}

.bb-video-body h4 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Trending */
.bb-trending {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 40px;
}

.bb-trending-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.bb-trending-item:last-child {
  border-bottom: none;
}

.bb-trending-item:hover {
  background: #fafafa;
}

.bb-trending-num {
  font-size: 24px;
  font-weight: 700;
  color: #ddd;
  width: 32px;
  flex-shrink: 0;
}

.bb-trending-item h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.bb-trending-item h4:hover {
  color: #c41e3a;
}

/* ==================== FOOTER ==================== */
.bb-footer {
  background: #1a1a1a;
  color: #bbb;
  margin-top: 48px;
  padding: 40px 16px 24px;
}

.bb-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.bb-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .bb-footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bb-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.bb-footer li {
  margin-bottom: 8px;
  font-size: 14px;
}

.bb-footer a:hover {
  color: #fff;
}

.bb-footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ==================== WORDPRESS SPECIFIC ==================== */
.aligncenter {
  display: block;
  margin: 0 auto;
}

.wp-caption {
  max-width: 100%;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
