/* ==========================================================================
   CloudRip Blog & Music Industry News Stylesheet
   ========================================================================== */

.blog-hero {
  padding: 50px 0 30px;
  text-align: center;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--radius-full, 9999px);
  color: var(--primary-amber, #ffa033);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.blog-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, #cbd5e1);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Category Filter Tabs */
.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.category-tab {
  padding: 7px 16px;
  border-radius: var(--radius-full, 9999px);
  background: var(--glass-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-tab:hover,
.category-tab.active {
  background: rgba(255, 85, 0, 0.15);
  border-color: rgba(255, 85, 0, 0.4);
  color: #ffffff;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-bottom: 60px;
}

.blog-card {
  background: var(--bg-card, rgba(19, 23, 34, 0.95));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.09));
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border, rgba(255, 85, 0, 0.4));
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 85, 0, 0.12);
}

.blog-card-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1e1b4b 0%, #172554 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ff8800;
  border: 1px solid rgba(255, 136, 0, 0.3);
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 10px;
}

.blog-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted, #94a3b8);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.blog-card-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-orange, #ff5500);
}

.blog-card-footer svg {
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-footer svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Article Single Page Styles
   ========================================================================== */

.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.article-back-link:hover {
  color: var(--primary-orange, #ff5500);
}

.article-header {
  margin-bottom: 35px;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--radius-full, 9999px);
  color: var(--primary-amber, #ffa033);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 16px;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5500, #ff8800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.85rem;
}

.article-author-name {
  font-weight: 700;
  color: #ffffff;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e2e8f0;
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 45px 0 16px;
  letter-spacing: -0.4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 30px 0 12px;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  padding-left: 10px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-orange, #ff5500);
  padding: 16px 22px;
  background: rgba(255, 85, 0, 0.06);
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
  font-style: italic;
  color: #fed7aa;
}

.article-body strong {
  color: #ffffff;
}

.article-callout {
  background: rgba(19, 23, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 22px;
  margin: 35px 0;
}

.article-callout-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-amber, #ffa033);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.35) 0%, rgba(30, 27, 75, 0.6) 50%, rgba(19, 23, 34, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  padding: 28px;
  margin: 45px 0;
  text-align: center;
  box-shadow: 0 16px 40px -10px rgba(147, 51, 234, 0.25);
}

.article-cta-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.article-cta-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .blog-title {
    font-size: 2.1rem;
  }
  .article-title {
    font-size: 1.9rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured Article Header Image */
.article-featured-image-wrap {
  width: 100%;
  max-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  margin: 25px 0 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  background: #141722;
}

.article-featured-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.blog-card-thumb {
  width: 100%;
  height: 200px !important;
  position: relative;
  overflow: hidden;
  background: #141722;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.06);
}

.blog-card-footer {
  cursor: pointer;
  text-decoration: none;
}


/* Google Workspace Blog CTA Box */
.article-cta-box-gw {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.18) 0%, rgba(30, 41, 59, 0.7) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(66, 133, 244, 0.4);
  border-radius: 16px;
  padding: 28px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -10px rgba(66, 133, 244, 0.25);
}

.article-cta-box-gw::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4285F4 0%, #EA4335 30%, #FBBC05 65%, #34A853 100%);
}

.gw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s ease;
  box-shadow: 0 4px 18px rgba(26, 115, 232, 0.45);
}

.gw-btn:hover {
  background: linear-gradient(135deg, #4285F4 0%, #1a73e8 100%);
  transform: scale(1.03);
  box-shadow: 0 8px 26px rgba(66, 133, 244, 0.65);
}
