/*
Theme Name: Intellifi
Theme URI: https://www.intellifi-ai.com
Author: Intellifi Team
Author URI: https://www.intellifi-ai.com
Description: Custom WordPress theme for intellifi blog - matching the main site design with navy blue, professional styling
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intellifi
Tags: blog, custom-colors, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready
*/

/**
 * Bank-Inspired Color System - Intellifi
 * Trust, Growth, Stability
 */

:root {
  /* Primary Colors - Trust & Authority */
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748B;

  /* Blue - Primary Actions & Links */
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-400: #60A5FA;
  --blue-50: #EFF6FF;

  /* Green - Growth & Success */
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10B981;
  --green-400: #34D399;
  --green-50: #ECFDF5;

  /* Neutral Foundation */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-600: #475569;
  --slate-700: #334155;
  --white: #FFFFFF;

  /* Neutral Colors */
  --neutral-900: #171717;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;

  /* Accent & Alerts */
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --red-600: #DC2626;
  --red-500: #EF4444;

  /* Semantic Colors */
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --text-primary: var(--navy-900);
  --text-secondary: var(--navy-700);
  --text-tertiary: var(--slate-600);
  --bg-primary: var(--white);
  --bg-secondary: var(--slate-50);
  --border-primary: var(--slate-200);
}

/* ================================
   BASE STYLES
   ================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--white);
  color: var(--navy-900);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-700);
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* ================================
   HEADER STYLES
   ================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  transition: opacity 0.2s ease;
}

.site-branding:hover {
  opacity: 0.8;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: 8px;
  font-style: italic;
  text-transform: lowercase;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
}

.site-branding:hover .logo-mark {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.logo-text {
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: var(--navy-900);
  background: none;
  border: none;
  cursor: pointer;
}

/* Navigation */
.main-navigation {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.main-navigation.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  padding: 0.75rem 1rem;
  color: var(--navy-700);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: block;
}

.main-navigation a:hover,
.main-navigation a.current {
  background: var(--blue-50);
  color: var(--blue-600);
}

.nav-link-cta {
  padding: 0.75rem 1.5rem !important;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: white !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-align: center;
}

.nav-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .main-navigation {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    border: none;
    padding: 0;
  }

  .main-navigation ul {
    flex-direction: row;
    align-items: center;
  }

  .logo-text {
    display: inline;
  }
}

/* ================================
   FOOTER STYLES
   ================================ */

.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand .logo-mark {
  width: 42px;
  height: 42px;
  font-size: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-description {
  font-size: 1rem;
  color: var(--neutral-500);
  max-width: 500px;
  margin: 0 auto;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-700);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.copyright {
  font-size: 0.875rem;
  color: var(--neutral-500);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--neutral-400);
}

.footer-links a:hover {
  color: var(--blue-400);
}

.footer-links .separator {
  color: var(--neutral-600);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--neutral-600);
  font-style: italic;
}

@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
    justify-content: center;
  }
}

/* ================================
   MAIN CONTENT AREA
   ================================ */

.site-main {
  padding: 2rem 0;
  min-height: calc(100vh - 400px);
}

/* ================================
   BLOG/POST STYLES
   ================================ */

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.entry-meta {
  color: var(--slate-600);
  font-size: 0.875rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--navy-700);
}

.entry-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: var(--navy-900);
}

.entry-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--navy-900);
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--blue-600);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--slate-600);
  font-style: italic;
}

.entry-content code {
  background: var(--slate-100);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.entry-content pre {
  background: var(--slate-100);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Featured Image */
.post-thumbnail {
  margin-bottom: 2rem;
}

.post-thumbnail img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* Blog Archive/Index */
.content-area-with-sidebar {
  display: block;
  width: 100%;
}

.main-content {
  width: 100%;
  margin-bottom: 3rem;
}

.sidebar {
  width: 100%;
}

.blog-posts {
  display: block;
  width: 100%;
  max-width: 100%;
}

.blog-post-card,
.blog-posts article {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 2rem;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block;
  clear: both;
  float: none !important;
}

.blog-post-card:hover {
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.blog-post-card .post-thumbnail img {
  margin: 0;
  border-radius: 0;
}

.blog-post-card .entry-header {
  padding: 1.5rem;
}

.blog-post-card .entry-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-post-card .entry-excerpt {
  padding: 0 1.5rem 1.5rem;
  color: var(--slate-600);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  color: var(--navy-700);
}

.pagination a:hover {
  background: var(--blue-50);
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.pagination .current {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
}

/* ================================
   WIDGETS/SIDEBAR
   ================================ */

.widget {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.widget li:last-child {
  border-bottom: none;
}

/* ================================
   UTILITY CLASSES
   ================================ */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (min-width: 1024px) {
  .content-area-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }
  
  .main-content {
    flex: 0 0 65%;
    margin-bottom: 0;
  }
  
  .sidebar {
    flex: 0 0 calc(35% - 2rem);
    position: sticky;
    top: 80px;
  }
  
  .blog-post-card {
    margin-bottom: 2rem;
  }
}
