/*
Theme Name: Funify Pro
Theme URI: https://funifytool.com
Author: AI Agent
Author URI: https://funifytool.com
Description: High-trust editorial theme optimized for maximum conversion.
Version: 2.1
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
Text Domain: funify-pro
*/

:root {
  --bg-color: #FAFAFA;
  --bg-card: #FFFFFF;
  --text-main: #111827;
  --text-muted: #4B5563;
  --accent-primary: #1A365D;
  --accent-secondary: #2563EB;
  --border-light: #E5E7EB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .serif-heading {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--text-main);
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-secondary); }

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.editorial-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.navbar {
  width: 100%; padding: 16px 0; background: #FFFFFF;
  border-bottom: 1px solid var(--border-light); position: relative;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo {
  font-size: 1.75rem; font-weight: 800; font-family: 'Merriweather', serif;
  color: var(--accent-primary); letter-spacing: -0.5px;
}

/* Desktop Menu */
.desktop-menu { display: flex; gap: 24px; align-items: center; }
.nav-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-weight: 500; color: var(--text-muted); }

/* Mobile Menu Button */
.mobile-menu-btn { display: none; font-size: 1.8rem; color: var(--accent-primary); cursor: pointer; user-select: none; }

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
  display: none; width: 100%; padding: 16px 24px; background: #FFFFFF;
  border-bottom: 1px solid var(--border-light); position: absolute; top: 100%; left: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05); z-index: 100;
}
.mobile-menu-dropdown a {
  font-weight: 500; color: var(--text-muted); padding: 12px 0; display: block;
  border-bottom: 1px solid var(--border-light);
}

#mobile-menu-toggle:checked ~ .mobile-menu-dropdown {
  display: flex; flex-direction: column;
}

@media (max-width: 992px) {
  .desktop-menu { display: none; }
  .mobile-menu-btn { display: block; }
}

.btn-primary {
  background: var(--accent-primary); color: #fff; padding: 12px 20px;
  border-radius: 2px; font-weight: 600; font-size: 1rem; border: none;
  cursor: pointer; transition: background 0.2s ease; display: inline-block; width: 100%; text-align: center; margin-bottom: 10px;
}
.btn-primary:hover { background: var(--accent-secondary); color: #fff; }
.btn-secondary { background: #fff; color: var(--text-main); border: 1px solid var(--border-light); }

@media (min-width: 600px) {
  .btn-primary { width: auto; margin-bottom: 0; }
}

/* Grid Layouts */
.grid { display: grid; gap: 24px; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive Utility Classes */
.section-padding { padding: 40px 0; }
.responsive-hero { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }

.hero-title { font-size: 2.2rem; line-height: 1.2; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; max-width: 500px; }
.section-title { font-size: 1.8rem; margin-bottom: 24px; font-weight: 900; border-bottom: 2px solid var(--text-main); padding-bottom: 8px; display: inline-block; }
.hero-image-container { position: relative; height: 250px; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

@media (min-width: 992px) {
  .section-padding { padding: 80px 0; }
  .responsive-hero { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-title { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 24px; }
  .hero-subtitle { font-size: 1.25rem; margin-bottom: 32px; }
  .section-title { font-size: 2.2rem; margin-bottom: 40px; padding-bottom: 10px; }
  .hero-image-container { height: 400px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
  .grid { gap: 32px; }
}

.category-card { background: var(--bg-card); border: 1px solid var(--border-light); padding: 24px; border-radius: 4px; text-align: center; transition: transform 0.2s ease, border-color 0.2s ease; }
.category-card:hover { transform: translateY(-5px); border-color: var(--accent-primary); }

.newsletter-section { background: var(--accent-primary); color: #fff; padding: 60px 20px; text-align: center; margin-top: 60px; }
.newsletter-title { font-size: 1.8rem; margin-bottom: 16px; font-weight: 900; }
.newsletter-input { padding: 14px 20px; width: 100%; max-width: 100%; border: none; border-radius: 2px; font-size: 1rem; margin-bottom: 10px; }
.newsletter-form { display: flex; flex-direction: column; align-items: center; margin-top: 24px; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
.newsletter-btn { background: var(--accent-secondary); color: #fff; padding: 14px 32px; border: none; font-weight: 700; cursor: pointer; font-size: 1rem; width: 100%; border-radius: 2px; transition: opacity 0.2s; }

@media (min-width: 600px) {
  .newsletter-section { padding: 80px 24px; margin-top: 80px; }
  .newsletter-title { font-size: 2.5rem; }
  .newsletter-form { flex-direction: row; gap: 0; margin-top: 30px; }
  .newsletter-input { max-width: 350px; margin-bottom: 0; border-radius: 2px 0 0 2px; }
  .newsletter-btn { width: auto; border-radius: 0 2px 2px 0; }
}

@media (max-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}

/* Article Styling */
.article-content h1, .article-content h2, .article-content h3 { margin-top: 40px; margin-bottom: 20px; font-weight: 700; font-family: 'Merriweather', serif; }
.article-content p { margin-bottom: 24px; color: var(--text-main); font-size: 1.15rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin-bottom: 24px; padding-left: 24px; color: var(--text-main); font-size: 1.15rem; }
.article-content li { margin-bottom: 10px; }
.article-content a { color: var(--accent-secondary); text-decoration: underline; }
.article-content strong { color: #000; font-weight: 700; }
.wp-post-image { width: 100%; height: auto; object-fit: cover; }
