/*
Theme Name: Trust The Tax Pros Premium
Theme URI: https://trustthetaxpros.com/
Author: Antigravity AI
Author URI: https://trustthetaxpros.com/
Description: A high-performance, professional theme for financial, construction, and sports calculators. Built with Tailwind CSS and modern aesthetics.
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: trustthetaxpros
Tags: financial, calculators, analytics, premium, dark-mode, responsive

This theme is designed to host the Trust The Tax Pros calculation suite.
*/

/* Base styles are handled by Tailwind CDN in header.php, but custom performance tweaks are here */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #1e3a8a;
    --accent: #059669;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hero-bg {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    position: relative;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
}

/* Global Utilities */
/* 6. Blog Content Styling */
.blog-content h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 900;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
}

.blog-content h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 900;
    color: #1e3a8a;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 900;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.blog-content p {
    color: #334155;
    line-height: 1.625;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.blog-content a {
    color: #059669;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-content a:hover {
    color: #047857;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    color: #334155;
}

.blog-content li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

/* 7. Calculator Hub Utilities */
.active-nav {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    font-weight: 700 !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Global hidden class removed to avoid conflict with Tailwind responsive utilities */

/* Custom Clickable Interface Tweaks */
.group:hover .after\:inset-0 {
    cursor: pointer;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 5px;
    border: 2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

/* Sidebar Active states for Hubs */
.active-nav {
    background-color: #f1f5f9 !important;
    border-left: 5px solid #059669 !important;
    color: #1e3a8a !important;
    font-weight: 800 !important;
}

/* Card Micro-interactions */
.calc-card-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* 8. Main Navigation & Header Fallbacks */
.nav-container {
    display: block !important;
    background-color: #ffffff;
    border-bottom: 3px solid #1e3a8a;
    /* Clean primary border instead of shadow */
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.desktop-menu {
    display: none !important;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 45px !important;
        /* Optimized gap for professional look */
        width: 100%;
    }
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569 !important;
    /* text-slate-600 */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 15px !important;
    /* Optimized padding for better spacing */
    border-bottom: 3px solid transparent;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #059669 !important;
    /* accent-600 */
}

.nav-link.active {
    color: #1e3a8a !important;
    /* Primary for active text */
    background-color: #f8fafc;
    /* Subtle highlight */
    font-weight: 900;
    border-bottom: 3px solid #059669 !important;
    /* Emerald underline */
    border-radius: 8px 8px 0 0;
}

.mobile-toggle-btn {
    display: block !important;
}

@media (min-width: 768px) {
    .mobile-toggle-btn {
        display: none !important;
    }
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu:not(.hidden) {
    display: flex !important;
}

/* 9. Premium Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 5rem;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    font-weight: 800;
    color: #1e3a8a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 0 1rem;
}

.pagination-wrapper .page-numbers:hover {
    transform: translateY(-4px);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1);
}

.pagination-wrapper .page-numbers.current {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
}

.pagination-wrapper .page-numbers.prev,
.pagination-wrapper .page-numbers.next {
    padding: 0 1.5rem;
    min-width: auto;
}

.pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    min-width: 2rem;
    height: auto;
    color: #94a3b8;
}