/* Modern Magazine CSS - Converted from Tailwind */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color Variables */
:root {
  --background: #ffffff;
  --foreground: #475569;
  --card: #f8fafc;
  --card-foreground: #475569;
  --primary: #ec4899;
  --primary-foreground: #ffffff;
  --secondary: #f8fafc;
  --secondary-foreground: #475569;
  --muted: #f8fafc;
  --muted-foreground: #475569;
  --border: #e5e7eb;
  --input: #ffffff;
  --ring: #ec4899;
  --radius: 0.5rem;
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--foreground);
  text-decoration: none;
}

.logo .highlight {
  color: var(--primary);
}

.nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: #db2777;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

/* Card Styles */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1.5rem;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
  opacity: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: white;
}

.hero-text {
  max-width: 64rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-excerpt {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Hero Navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.hero-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-nav.prev {
  left: 1rem;
}

.hero-nav.next {
  right: 1rem;
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicator.active {
  background-color: var(--primary);
  transform: scale(1.1);
}

.hero-indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

/* Specific grid for article layout */
.article-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 2rem !important;
  align-items: start !important;
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.main-content {
  min-width: 0; /* Prevents grid overflow */
}

.sidebar {
  min-width: 0; /* Prevents grid overflow */
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-secondary {
  background-color: var(--secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* Article Card */
.article-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-2px);
}

.article-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-social {
  display: flex;
  gap: 0.5rem;
}

/* Newsletter */
.newsletter {
  background-color: var(--secondary);
}

.newsletter-card {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.newsletter-icon-bg {
  padding: 0.75rem;
  background-color: rgba(236, 72, 153, 0.1);
  border-radius: 50%;
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 24rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .current {
  color: var(--foreground);
}

/* Article Page Styles */
.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .article-title {
    font-size: 3rem;
  }
}

.article-meta-full {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.article-social-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.article-social-share span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.article-image-featured {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .article-image-featured {
    height: 24rem;
  }
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: none;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-actions-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-actions-left {
  display: flex;
  gap: 1rem;
}

/* Author Bio */
.author-bio {
  margin-top: 2rem;
}

.author-content {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.author-avatar {
  width: 4rem;
  height: 4rem;
  background-color: rgba(236, 72, 153, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.author-info h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
}

.author-info p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--card-foreground);
  margin-bottom: 1rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tag-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.related-article {
  display: flex;
  gap: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.related-article:hover {
  opacity: 0.8;
}

.related-article img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.related-article-content {
  flex: 1;
}

.related-article h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.related-article:hover h4 {
  color: var(--primary);
}

.related-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Ad Banner */
.ad-banner {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.ad-banner-large {
  min-height: 8rem;
}

.ad-banner-medium {
  min-height: 6rem;
}

.ad-banner-small {
  min-height: 5rem;
}

@media (min-width: 768px) {
  .ad-banner-large {
    min-height: 10rem;
  }
  
  .ad-banner-medium {
    min-height: 8rem;
  }
}

.ad-banner-content {
  color: var(--muted-foreground);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-banner-title {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.ad-banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.5);
  /*border: 2px dashed var(--border);*/
  border-radius: var(--radius);
  padding: 0;
  margin: 0;
}

.ad-banner-placeholder img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.ad-banner-placeholder p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
}

/* Article page responsive layout */
@media (max-width: 1023px) {
  .grid-2-1,
  .article-layout,
  .article-grid {
    grid-template-columns: 1fr !important;
  }
  
  .sidebar {
    margin-top: 2rem;
  }
}

/* Icons (using simple CSS shapes for basic icons) */
.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
}

.icon-menu::before {
  content: "☰";
  font-size: 1.2em;
}

.icon-search::before {
  content: "🔍";
  font-size: 0.9em;
}

.icon-user::before {
  content: "👤";
  font-size: 0.9em;
}

.icon-calendar::before {
  content: "📅";
  font-size: 0.9em;
}

.icon-heart::before {
  content: "♡";
  font-size: 1em;
}

.icon-share::before {
  content: "↗";
  font-size: 1em;
}

.icon-facebook::before {
  content: "f";
  font-weight: bold;
  background: #1877f2;
  color: white;
  border-radius: 2px;
  padding: 2px;
  font-size: 0.8em;
}

.icon-twitter::before {
  content: "t";
  font-weight: bold;
  background: #1da1f2;
  color: white;
  border-radius: 2px;
  padding: 2px;
  font-size: 0.8em;
}

.icon-instagram::before {
  content: "📷";
  font-size: 0.9em;
}

.icon-youtube::before {
  content: "▶";
  background: #ff0000;
  color: white;
  border-radius: 2px;
  padding: 2px;
  font-size: 0.7em;
}

.icon-mail::before {
  content: "✉";
  font-size: 0.9em;
}

.icon-phone::before {
  content: "📞";
  font-size: 0.9em;
}

.icon-map::before {
  content: "📍";
  font-size: 0.9em;
}

.icon-clock::before {
  content: "⏱";
  font-size: 0.9em;
}

.icon-arrow-left::before {
  content: "←";
  font-size: 1.2em;
}

.icon-chevron-left::before {
  content: "‹";
  font-size: 1.5em;
}

.icon-chevron-right::before {
  content: "›";
  font-size: 1.5em;
}

.icon-x::before {
  content: "✕";
  font-size: 1em;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
  
  .desktop-nav {
    display: flex;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
