/* Italianuda High-CTR Monetized News Theme */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-red: #ef4444;
  --accent-green: #16a34a;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.12);
  --radius-md: 10px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --bg-body: #0f172a;
  --bg-surface: #1e293b;
  --bg-subtle: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  direction: ltr;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-icon {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--primary);
  color: white;
}

/* Reading Progress Bar */
#progress-container {
  width: 100%;
  height: 4px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
}
#progress-bar {
  height: 100%;
  background: var(--accent-red);
  width: 0%;
  transition: width 0.1s;
}

/* Main Content */
.main-content {
  padding: 2rem 0 4rem 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.badge-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.badge-secondary {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Article Wrapper */
.article-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .article-wrapper { padding: 1.25rem; }
}

.article-header { margin-bottom: 2rem; }
.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1rem 0;
  color: var(--text-primary);
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.author-meta { display: flex; align-items: center; gap: 0.5rem; }

/* Article Body */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.8rem 0 1rem 0;
  color: var(--text-primary);
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.4rem 0 0.8rem 0;
  color: var(--text-secondary);
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.article-body ul {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}
.article-body li { margin-bottom: 0.5rem; }

/* High-CTR CTA Button & Banner Styles */
.cta-button-prime {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  animation: pulseCta 2s infinite;
}
.cta-button-prime:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

@keyframes pulseCta {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ad-cta-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-left: 5px solid var(--primary) !important;
  padding: 1.5rem !important;
  border-radius: var(--radius-md) !important;
  margin: 2rem 0 !important;
}
[data-theme="dark"] .ad-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%) !important;
}

/* Floating Bottom Sticky Bar CTA */
.sticky-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--accent-red);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}
.sticky-bottom-cta span {
  font-weight: 700;
  font-size: 0.95rem;
}
.sticky-bottom-cta a {
  background: var(--accent-red);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Share & Footer */
.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: white;
}
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: var(--text-muted); }

/* Grid Features */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Site Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
