/*
Theme Name: News Certification
Theme URI: https://newscertification.org
Author: News Certification
Description: Block theme for News Certification. Blog + video tutorials with a clean SaaS look (Inter, blue-to-purple gradients, rounded hover-lift cards). Matches the original Vite/React site design.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newscert
*/

/* Global styles are managed in theme.json. Rules below cover things
   theme.json cannot express: gradients on text, card hover-lift, hero. */

/* Gradient wordmark / accent text */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero gradient band */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #8b5cf6 100%);
  color: #fff;
}
.hero-gradient :where(h1,h2,h3,p,a) { color: #fff; }

/* Card hover-lift — matches original .card-hover */
.nc-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 100%;
}
.nc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Tutorial video thumb placeholder */
.nc-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Meta row (duration / difficulty / category) */
.nc-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}
.nc-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
}

@media (prefers-reduced-motion: reduce) {
  .nc-card { transition: none; }
  .nc-card:hover { transform: none; }
}
