/*
Theme Name: SmartDay Trends
Theme URI: https://smartdaytrends.com/
Author: SmartDay Trends Team
Author URI: https://smartdaytrends.com/
Description: A high-performance, full-width, Elementor-ready WordPress theme tailored for SmartDay Trends with dynamic header, customizable footer, category branding (Health, Money, Lifestyle, Pets), and beautiful modern layouts.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartday-trends
Tags: elementor, clean, responsive, custom-header, custom-menu, full-width-template, translation-ready, blog
*/

/* --------------------------------------------------------------------------
   Google Font Import & CSS Custom Properties
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Category Colors */
  --sd-trends: #0284c7;
  --sd-trends-dark: #0369a1;
  --sd-health: #a32684;
  --sd-health-dark: #922075;
  --sd-health-bg: #fdf0fa;
  --sd-money: #1b8b54;
  --sd-money-dark: #167a4a;
  --sd-money-bg: #ebf7f0;
  --sd-lifestyle: #8ea828;
  --sd-lifestyle-dark: #88a221;
  --sd-lifestyle-bg: #f7fbe9;
  --sd-pets: #157393;
  --sd-pets-dark: #126480;
  --sd-pets-bg: #edf7fb;

  /* Neutrals */
  --sd-text: #2b2f38;
  --sd-text-muted: #64748b;
  --sd-bg: #ffffff;
  --sd-dark-bg: #2b2d38;
  --sd-border: #ebeef2;

  /* Typography */
  --sd-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--sd-font-sans);
  color: var(--sd-text);
  background-color: #ffffff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sd-trends);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Full-Width Site Container
   -------------------------------------------------------------------------- */
.sd-site-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Header Styling (Full-Width Edge-to-Edge with Inner Container)
   -------------------------------------------------------------------------- */
.sd-header {
  width: 100%;
  border-bottom: 1px solid var(--sd-border);
  background: #ffffff;
  position: relative;
  z-index: 100;
}

.sd-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.sd-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 26px;
  color: #1a202c;
}

.sd-logo-wrap img {
  max-height: 44px;
  width: auto;
}

.sd-logo-badge {
  color: #ffffff;
  background-color: var(--sd-trends);
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 19px;
  font-weight: 700;
  display: inline-block;
  line-height: 1.3;
}

/* Category Specific Badge Overrides */
body.category-health .sd-logo-badge,
body.single-health .sd-logo-badge,
body.page-hearing .sd-logo-badge,
body.page-prostate .sd-logo-badge {
  background-color: var(--sd-health);
}

body.category-money .sd-logo-badge,
body.single-money .sd-logo-badge,
body.page-life-insurance .sd-logo-badge,
body.page-crypto .sd-logo-badge {
  background-color: var(--sd-money);
}

body.category-lifestyle .sd-logo-badge,
body.single-lifestyle .sd-logo-badge,
body.page-travel-tips .sd-logo-badge,
body.page-diy-tips .sd-logo-badge {
  background-color: var(--sd-lifestyle);
}

body.category-pets .sd-logo-badge,
body.single-pets .sd-logo-badge,
body.page-dognutrition .sd-logo-badge {
  background-color: var(--sd-pets);
}

/* Navigation Menu */
.sd-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.sd-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.sd-nav ul li a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.sd-nav ul li a:hover,
.sd-nav ul li.current-menu-item > a,
.sd-nav ul li.current_page_item > a {
  color: var(--sd-trends);
  border-bottom-color: var(--sd-trends);
}

/* Mobile Nav Toggle */
.sd-menu-toggle {
  display: none;
  background: none;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

/* --------------------------------------------------------------------------
   Full-Width Content Area & Elementor Compatibility
   -------------------------------------------------------------------------- */
.sd-content-area,
.site-main,
.sd-elementor-fullwidth-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 0 auto;
  margin: 0;
  padding: 0;
}

/* Full Width Elementor Sections */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1240px;
}

/* Container for Standard WordPress Pages */
.sd-standard-page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 25px 70px;
}

.sd-standard-page-container h1 {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
}

.sd-standard-page-container p {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Footer Styling (Full-Width Edge-to-Edge)
   -------------------------------------------------------------------------- */
.sd-footer {
  width: 100%;
  background-color: var(--sd-dark-bg);
  color: #ffffff;
  padding: 55px 25px 35px;
  margin-top: auto;
}

.sd-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.sd-footer-col-brand {
  flex: 2 1 280px;
}

.sd-footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.sd-footer-tagline {
  color: #a0aec0;
  font-size: 14px;
  font-style: italic;
  margin: 0 0 14px;
}

.sd-footer-disclaimer {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
  max-width: 360px;
  margin: 0;
}

.sd-footer-col {
  flex: 1 1 150px;
}

.sd-footer-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #e2e8f0;
}

.sd-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.2;
}

.sd-footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.sd-footer-col ul li a:hover {
  color: #38bdf8;
}

.sd-footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 25px;
  border-top: 1px solid #3e4453;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
  gap: 15px;
}

/* Ensure category cards in Elementor have equal height */
.sd-categories-section .elementor-column,
.sd-categories-section .elementor-column-wrap,
.sd-categories-section .elementor-widget-wrap,
.sd-categories-section .elementor-widget {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.sd-categories-section a {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 330px;
}

.sd-categories-section a > div:last-child {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: center !important;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .sd-menu-toggle {
    display: block;
  }

  .sd-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 15px;
    border-top: 1px solid var(--sd-border);
  }

  .sd-nav.active {
    display: flex;
  }

  .sd-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  .sd-nav ul li {
    width: 100%;
  }

  .sd-nav ul li a {
    display: block;
    padding: 8px 0;
  }

  .sd-footer-inner {
    flex-direction: column;
    gap: 30px;
  }
}

