/*
Theme Name: Calcota
Theme URI: https://calcota.com
Author: Calcota Team
Description: Ultra-fast custom theme for Calcota - Free Online Financial Calculators. Lightweight, SEO-optimized, AdSense-ready.
Version: 1.0.0
License: GNU General Public License v2
Text Domain: calcota
*/

/* === RESET & BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;line-height:1.7;color:#1a1a2e;background:#f8f9fa}
img{max-width:100%;height:auto;display:block}
a{color:#2563eb;text-decoration:none;transition:color .2s}
a:hover{color:#1d4ed8}
h1,h2,h3,h4,h5,h6{line-height:1.3;color:#1a1a2e;font-weight:700}
h1{font-size:2rem}
h2{font-size:1.6rem}
h3{font-size:1.3rem}
p{margin-bottom:1rem}
ul,ol{padding-left:1.5rem;margin-bottom:1rem}

/* === LAYOUT === */
.site-wrapper{min-height:100vh;display:flex;flex-direction:column}
.container{max-width:1200px;margin:0 auto;padding:0 1.25rem;width:100%}
.content-area{flex:1}

/* === HEADER === */
.site-header{background:#fff;border-bottom:2px solid #2563eb;padding:.75rem 0;position:sticky;top:0;z-index:100;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.site-logo{font-size:1.5rem;font-weight:800;color:#1a1a2e;letter-spacing:-.5px}
.site-logo span{color:#2563eb}
.site-tagline{font-size:.8rem;color:#64748b;display:block}

/* === NAV === */
.main-nav ul{list-style:none;display:flex;gap:1.5rem;padding:0;margin:0;flex-wrap:wrap}
.main-nav a{color:#334155;font-weight:500;font-size:.95rem;padding:.25rem 0;border-bottom:2px solid transparent;transition:all .2s}
.main-nav a:hover,.main-nav .current-menu-item a{color:#2563eb;border-bottom-color:#2563eb}
.nav-toggle{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer;color:#1a1a2e;padding:.25rem}

/* === HERO (Homepage) === */
.hero{background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%);color:#fff;padding:3rem 0;text-align:center}
.hero h1{font-size:2.2rem;margin-bottom:.75rem;color:#fff}
.hero p{font-size:1.1rem;opacity:.9;max-width:600px;margin:0 auto 1.5rem}
.hero-search{max-width:500px;margin:0 auto}
.hero-search input{width:100%;padding:.85rem 1.25rem;border:none;border-radius:8px;font-size:1rem;box-shadow:0 4px 15px rgba(0,0,0,.15)}
.hero-search input:focus{outline:3px solid rgba(255,255,255,.4)}

/* === CALCULATOR GRID === */
.calc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;padding:2rem 0}
.calc-card{background:#fff;border-radius:12px;padding:1.5rem;border:1px solid #e2e8f0;transition:all .25s;text-decoration:none;color:inherit;display:flex;flex-direction:column}
.calc-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(37,99,235,.12);border-color:#2563eb}
.calc-card-icon{width:48px;height:48px;background:#eff6ff;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;margin-bottom:.75rem}
.calc-card h3{font-size:1.1rem;margin-bottom:.5rem;color:#1a1a2e}
.calc-card p{font-size:.875rem;color:#64748b;margin-bottom:0;flex:1}
.calc-card .card-arrow{color:#2563eb;font-weight:600;font-size:.875rem;margin-top:.75rem}

/* === SECTION HEADERS === */
.section-header{text-align:center;padding:2.5rem 0 .5rem}
.section-header h2{font-size:1.75rem;margin-bottom:.5rem}
.section-header p{color:#64748b;max-width:600px;margin:0 auto}

/* === SINGLE CALCULATOR PAGE === */
.calc-page{padding:2rem 0}
.calc-page-inner{display:grid;grid-template-columns:1fr 340px;gap:2rem;align-items:start}
.calc-main{background:#fff;border-radius:12px;padding:2rem;border:1px solid #e2e8f0}
.calc-sidebar{display:flex;flex-direction:column;gap:1.25rem}

/* Calculator Tool Styles */
.calc-tool{background:#f0f7ff;border-radius:10px;padding:1.75rem;margin-bottom:1.5rem}
.calc-tool label{display:block;font-weight:600;margin-bottom:.35rem;color:#334155;font-size:.95rem}
.calc-tool input[type="number"],.calc-tool input[type="text"],.calc-tool select{width:100%;padding:.7rem 1rem;border:1.5px solid #cbd5e1;border-radius:8px;font-size:1rem;background:#fff;transition:border-color .2s}
.calc-tool input:focus,.calc-tool select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.calc-tool .input-group{margin-bottom:1rem}
.calc-tool .input-hint{font-size:.8rem;color:#94a3b8;margin-top:.25rem}
.calc-btn{background:#2563eb;color:#fff;border:none;padding:.85rem 2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;width:100%;transition:background .2s;margin-top:.5rem}
.calc-btn:hover{background:#1d4ed8}

/* Result Box */
.calc-result{background:#fff;border:2px solid #2563eb;border-radius:10px;padding:1.5rem;margin-top:1.25rem;display:none}
.calc-result.show{display:block}
.calc-result h3{color:#2563eb;margin-bottom:.75rem;font-size:1.2rem}
.result-row{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid #f1f5f9}
.result-row:last-child{border-bottom:none}
.result-label{color:#64748b;font-size:.95rem}
.result-value{font-weight:700;color:#1a1a2e;font-size:1.05rem}
.result-highlight{font-size:1.4rem;color:#2563eb;text-align:center;padding:1rem 0;font-weight:800}

/* Chart Area */
.calc-chart{background:#fff;border-radius:10px;padding:1.5rem;margin-top:1.25rem;border:1px solid #e2e8f0}

/* === CONTENT SECTIONS (Below Calculator) === */
.content-section{margin-top:2rem;padding-top:2rem;border-top:1px solid #e2e8f0}
.content-section h2{font-size:1.4rem;margin-bottom:1rem;color:#1a1a2e}
.content-section h3{font-size:1.15rem;margin:1.25rem 0 .5rem}
.content-section p{color:#475569;line-height:1.8}
.content-section ul,.content-section ol{color:#475569;line-height:1.8;margin-bottom:1rem}
.formula-box{background:#f8fafc;border-left:4px solid #2563eb;padding:1rem 1.25rem;border-radius:0 8px 8px 0;margin:1rem 0;font-family:'Courier New',monospace;font-size:.95rem}

/* FAQ Section */
.faq-section{margin-top:2rem}
.faq-item{border:1px solid #e2e8f0;border-radius:8px;margin-bottom:.75rem;overflow:hidden}
.faq-question{padding:1rem 1.25rem;font-weight:600;cursor:pointer;background:#fff;display:flex;justify-content:space-between;align-items:center;transition:background .2s}
.faq-question:hover{background:#f8fafc}
.faq-question::after{content:'+';font-size:1.2rem;color:#2563eb;font-weight:700;transition:transform .3s}
.faq-item.open .faq-question::after{transform:rotate(45deg)}
.faq-answer{padding:0 1.25rem;max-height:0;overflow:hidden;transition:all .3s;color:#475569;line-height:1.8}
.faq-item.open .faq-answer{padding:0 1.25rem 1rem;max-height:500px}

/* === SIDEBAR WIDGETS === */
.sidebar-widget{background:#fff;border-radius:12px;padding:1.25rem;border:1px solid #e2e8f0}
.sidebar-widget h4{font-size:1rem;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #2563eb;color:#1a1a2e}
.sidebar-widget ul{list-style:none;padding:0}
.sidebar-widget li{padding:.4rem 0}
.sidebar-widget li a{color:#475569;font-size:.9rem;display:flex;align-items:center;gap:.5rem}
.sidebar-widget li a:hover{color:#2563eb}
.sidebar-widget li a::before{content:'→';color:#2563eb}

/* Ad Placeholder */
.ad-space{background:#f1f5f9;border:1px dashed #cbd5e1;border-radius:8px;padding:2rem;text-align:center;color:#94a3b8;font-size:.85rem;min-height:250px;display:flex;align-items:center;justify-content:center}

/* === BLOG === */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem;padding:2rem 0}
.blog-card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0;transition:all .25s}
.blog-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.08);transform:translateY(-2px)}
.blog-card-img{height:180px;background:#e2e8f0;overflow:hidden}
.blog-card-img img{width:100%;height:100%;object-fit:cover}
.blog-card-body{padding:1.25rem}
.blog-card-body h3{font-size:1.1rem;margin-bottom:.5rem}
.blog-card-body h3 a{color:#1a1a2e}
.blog-card-body h3 a:hover{color:#2563eb}
.blog-card-meta{font-size:.8rem;color:#94a3b8;margin-bottom:.5rem}
.blog-card-body p{font-size:.9rem;color:#64748b}

/* Single Post */
.single-post-content{max-width:800px;margin:0 auto;padding:2rem 0}
.single-post-content h1{font-size:2rem;margin-bottom:1rem}
.single-post-content .post-meta{color:#64748b;margin-bottom:2rem;font-size:.9rem}
.entry-content{line-height:1.9;color:#334155}
.entry-content h2{margin:2rem 0 1rem;font-size:1.5rem}
.entry-content h3{margin:1.5rem 0 .75rem;font-size:1.25rem}
.entry-content p{margin-bottom:1.25rem}
.entry-content img{border-radius:8px;margin:1.5rem 0}
.entry-content blockquote{border-left:4px solid #2563eb;padding:1rem 1.5rem;background:#f8fafc;margin:1.5rem 0;border-radius:0 8px 8px 0}
.entry-content table{width:100%;border-collapse:collapse;margin:1.5rem 0}
.entry-content th,.entry-content td{padding:.75rem 1rem;border:1px solid #e2e8f0;text-align:left}
.entry-content th{background:#f8fafc;font-weight:600}

/* === PAGES (About, Contact etc) === */
.page-content{max-width:800px;margin:0 auto;padding:2rem 0}
.page-content h1{font-size:2rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #2563eb}

/* === FOOTER === */
.site-footer{background:#1a1a2e;color:#94a3b8;padding:2.5rem 0 1.5rem;margin-top:3rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem;margin-bottom:2rem}
.footer-col h4{color:#fff;font-size:1rem;margin-bottom:1rem}
.footer-col p{font-size:.875rem;line-height:1.7}
.footer-col ul{list-style:none;padding:0}
.footer-col li{margin-bottom:.4rem}
.footer-col a{color:#94a3b8;font-size:.875rem;transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid #2d2d4a;padding-top:1.25rem;text-align:center;font-size:.8rem}
.footer-bottom a{color:#60a5fa}

/* === BREADCRUMBS === */
.breadcrumbs{padding:.75rem 0;font-size:.85rem;color:#64748b}
.breadcrumbs a{color:#2563eb}
.breadcrumbs span{margin:0 .4rem}

/* === PAGINATION === */
.pagination{display:flex;justify-content:center;gap:.5rem;padding:2rem 0}
.pagination a,.pagination span{padding:.5rem 1rem;border:1px solid #e2e8f0;border-radius:6px;font-size:.9rem}
.pagination .current{background:#2563eb;color:#fff;border-color:#2563eb}

/* === RESPONSIVE === */
@media(max-width:1024px){
  .calc-page-inner{grid-template-columns:1fr}
  .calc-sidebar{order:2}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .nav-toggle{display:block}
  .main-nav{width:100%;order:3}
  .main-nav ul{flex-direction:column;gap:0;display:none;padding-top:.75rem}
  .main-nav.open ul{display:flex}
  .main-nav li{border-top:1px solid #f1f5f9}
  .main-nav a{display:block;padding:.6rem 0}
  .hero h1{font-size:1.6rem}
  .hero p{font-size:.95rem}
  .calc-grid{grid-template-columns:1fr}
  .blog-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .section-header h2{font-size:1.4rem}
  h1{font-size:1.6rem}
  .calc-main{padding:1.25rem}
  .calc-tool{padding:1.25rem}
}
@media(max-width:480px){
  .container{padding:0 1rem}
  .hero{padding:2rem 0}
  .hero h1{font-size:1.4rem}
}
