/*
Theme Name: Casa e Jardim Blog
Description: Tema moderno e leve para blog de casa e jardim com carrossel de posts e seções para anúncios
Author: Seu Nome
Version: 1.0
*/

:root {
  /* Casa e Jardim Blog Design System - Cores naturais e elegantes */
  --background: 45 23% 97%;
  --foreground: 140 10% 15%;

  --card: 0 0% 100%;
  --card-foreground: 140 10% 15%;

  --primary: 142 76% 36%;
  --primary-foreground: 0 0% 98%;

  --secondary: 35 25% 88%;
  --secondary-foreground: 140 10% 15%;

  --muted: 35 15% 92%;
  --muted-foreground: 140 8% 45%;

  --accent: 25 95% 53%;
  --accent-foreground: 0 0% 98%;

  --border: 35 15% 88%;
  --input: 35 15% 88%;
  --ring: 142 76% 36%;

  /* Casa e Jardim specific colors */
  --nature-green: 142 76% 36%;
  --earth-brown: 35 45% 65%;
  --warm-coral: 25 95% 53%;
  --soft-sage: 142 25% 85%;
  --garden-moss: 140 60% 25%;

  /* Gradients */
  --gradient-nature: linear-gradient(135deg, hsl(var(--nature-green)), hsl(var(--garden-moss)));
  --gradient-earth: linear-gradient(135deg, hsl(var(--earth-brown)), hsl(var(--warm-coral)));
  --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--soft-sage)));

  /* Shadows */
  --shadow-elegant: 0 10px 30px -10px hsl(var(--nature-green) / 0.15);
  --shadow-card: 0 4px 20px -4px hsl(var(--nature-green) / 0.1);
  --shadow-glow: 0 0 40px hsl(var(--nature-green) / 0.2);

  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 0.5rem;
}

.dark {
  --background: 140 15% 8%;
  --foreground: 35 25% 88%;
  --card: 140 15% 10%;
  --card-foreground: 35 25% 88%;
  --muted: 140 10% 15%;
  --muted-foreground: 35 15% 65%;
  --border: 140 10% 15%;
  --input: 140 10% 15%;
  --ring: 142 65% 45%;

  /* Dark mode specific colors */
  --nature-green: 142 65% 45%;
  --earth-brown: 35 35% 45%;
  --warm-coral: 25 85% 60%;
  --soft-sage: 142 15% 25%;
  --garden-moss: 140 70% 35%;

  --gradient-nature: linear-gradient(135deg, hsl(var(--nature-green)), hsl(var(--garden-moss)));
  --gradient-earth: linear-gradient(135deg, hsl(var(--earth-brown)), hsl(var(--warm-coral)));
  --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--soft-sage)));

  --shadow-elegant: 0 10px 30px -10px hsl(var(--nature-green) / 0.25);
  --shadow-card: 0 4px 20px -4px hsl(var(--nature-green) / 0.2);
  --shadow-glow: 0 0 40px hsl(var(--nature-green) / 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive Images - Lazy Loading Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
  opacity: 1;
}

.aspect-ratio-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.aspect-ratio-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image lazy loading animations */
@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

img[loading="lazy"].loaded {
  animation: fadeInImage 0.4s ease-out;
}

/* Prevent layout shifts with aspect ratios */
.blog-card-image,
.post-featured-image {
  position: relative;
}

.blog-card-image::before,
.post-featured-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid hsl(var(--primary) / 0.3);
  border-radius: 50%;
  border-top-color: hsl(var(--primary));
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"]:not(.loaded) ~ .blog-card-image::before,
img[loading="lazy"]:not(.loaded) ~ .post-featured-image::before {
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Avatar specific optimizations */
.author-avatar,
.carousel-author-avatar,
.author-hero-avatar,
.author-avatar-img {
  border-radius: 50%;
  object-fit: cover;
  background: hsl(var(--muted));
}

/* Prevent content overflow */
.site-main img,
.site-main iframe,
.site-main video,
.site-main embed,
.site-main object {
  max-width: 100%;
  height: auto;
}

.site-main {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  padding: 0.5rem;
  background: var(--gradient-nature);
  border-radius: 0.5rem;
  color: white;
  font-size: 1.5rem;
}

.site-header .header-content .logo .logo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: hsl(var(--muted));
  flex-shrink: 0;
}

.site-header .header-content .logo .logo-image img {
  width: 2.5rem;
  height: 2.5rem;
  max-width: 2.5rem;
  max-height: 2.5rem;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: bold;
  color: hsl(var(--foreground));
  margin: 0;
}

.logo-text p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  
  .header-content .search-button {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  height: 2px;
  width: 0;
  background: hsl(var(--primary));
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius));
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient-nature);
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
  background: hsl(var(--muted));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Cards */
.blog-card {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border));
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.author-card {
  background: linear-gradient(135deg, hsl(var(--soft-sage)), hsl(var(--background)));
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border));
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--soft-sage) / 0.2), hsl(var(--background)));
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title .text-primary {
  color: hsl(var(--primary));
}

.hero-title .text-accent {
  color: hsl(var(--accent));
}

.hero-description {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image {
  position: relative;
}

.hero-image-container {
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Legacy post grid - now handled by new blog-card layout */

/* Author Section */
.author-section {
  background: linear-gradient(135deg, hsl(var(--soft-sage) / 0.3), hsl(var(--background)));
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid hsl(var(--border));
}

/* Home Ads Section */
.home-ads {
  padding: 2rem 0;
}

/* Ad Section */
.ad-section {
  padding: 0;
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
}

/* Carousel - Swiper Integration */
.featured-posts-carousel {
  position: relative;
  overflow: hidden;
  background: var(--gradient-subtle);
  padding: 3rem 0;
}

.swiper-wrapper {
  display: flex;
  transition-timing-function: ease;
}

.swiper-slide {
  flex-shrink: 0;
  height: auto;
  padding: 0 0.75rem;
}

.swiper-slide .blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.swiper-slide .blog-card > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swiper-button-next,
.swiper-button-prev {
  color: hsl(var(--primary)) !important;
  background: hsl(var(--background)) !important;
  border-radius: 50% !important;
  width: 3rem !important;
  height: 3rem !important;
  margin-top: -1.5rem !important;
  box-shadow: var(--shadow-card) !important;
  transition: var(--transition-smooth) !important;
  border: 1px solid hsl(var(--border)) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1) !important;
  box-shadow: var(--shadow-elegant) !important;
  color: hsl(var(--primary)) !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1rem !important;
  font-weight: bold !important;
}

/* Carousel author styling to match React version exactly */
.featured-posts-carousel .swiper-slide .carousel-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.featured-posts-carousel .swiper-slide .carousel-author .carousel-author-avatar,
.featured-posts-carousel .swiper-slide .carousel-author img,
.featured-posts-carousel .swiper-slide .author-info img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.75rem;
  margin-bottom: 0;
}

.featured-posts-carousel .swiper-slide .carousel-author-name,
.featured-posts-carousel .swiper-slide .author-info span {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Blog card content structure to match React version */
.blog-card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .card-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.blog-card .card-meta i {
  margin-right: 0.25rem;
}

.blog-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .card-excerpt {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card .card-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog-card .author-info {
  display: flex;
  align-items: center;
}

.blog-card .read-more {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: var(--transition-smooth);
}

.blog-card .read-more:hover {
  color: hsl(var(--primary));
}

/* Swiper carousel animations and transitions - match React smooth behavior */
.swiper-slide .blog-card {
  transition: var(--transition-smooth);
}

.swiper-slide:hover .blog-card {
  box-shadow: var(--shadow-elegant);
}

.swiper-slide img {
  transition: transform 0.3s ease;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.swiper-button-next,
.swiper-button-prev {
  color: hsl(var(--primary)) !important;
  background: hsl(var(--background)) !important;
  border-radius: 50% !important;
  width: 3rem !important;
  height: 3rem !important;
  margin-top: -1.5rem !important;
  box-shadow: var(--shadow-card) !important;
  transition: var(--transition-smooth) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1) !important;
  box-shadow: var(--shadow-elegant) !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1rem !important;
}

/* Legacy styles - now handled by new blog-card layout */

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Responsive Grid Layout */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, hsl(var(--garden-moss)), hsl(var(--nature-green))) !important;
  color: white !important;
  border-top: none !important;
  padding: 3rem 0 1rem !important;
  margin-top: 4rem !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Import responsive CSS */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* Lazy loading */
.lazy-image {
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loading {
  opacity: 0;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Responsive grid layout to match React BlogGrid */
.blog-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .blog-grid-container {
    grid-template-columns: 2fr 1fr;
  }
}

.main-content {
  width: 100%;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog card layout to match React exactly */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: hsl(var(--card));
  border-radius: 0.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .blog-card {
    flex-direction: row;
  }
}

.blog-card:hover {
  box-shadow: var(--shadow-elegant);
  transform: translateY(-2px);
}

/* Blog card components */
.blog-card-image {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .blog-card-image {
    width: 20rem;
  }
}

.aspect-ratio-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.5rem;
  background: hsl(var(--muted));
}

@media (min-width: 768px) {
  .aspect-ratio-container {
    aspect-ratio: 16/9;
  }
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.category-badge {
  background: hsl(var(--background) / 0.9);
  color: hsl(var(--foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .blog-card-title {
    font-size: 1.5rem;
  }
}

.blog-card-title a {
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title a {
  color: hsl(var(--primary));
}

.blog-card-excerpt {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.6;
  flex: 1;
}

.blog-card-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.author-role {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Utility classes matching React Tailwind exactly */
.bg-card {
  background-color: hsl(var(--card));
}

.text-card-foreground {
  color: hsl(var(--card-foreground));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
}

.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.border {
  border: 1px solid hsl(var(--border));
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.p-6 {
  padding: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 0.5rem;
}

.w-full {
  width: 100%;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.cursor-pointer {
  cursor: pointer;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-primary:hover {
  background-color: hsl(var(--primary));
}

.hover\:text-primary-foreground:hover {
  color: hsl(var(--primary-foreground));
}

.text-center {
  text-align: center;
}

.min-w-32 {
  min-width: 8rem;
}

/* Button size variants matching React */
.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
}

/* Tag/Badge styles matching React exactly */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.tag-badge:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Widget styles to ensure consistent ad formatting */
.widget {
  margin: 0;
}

.widget .ad-section {
  margin: 0;
}

/* Responsive utilities matching React - handled in responsive.css */
