/*
Theme Name: That's IT Tools
Theme URI: https://thatsittools.com
Author: Javier Morales
Description: Custom Bootstrap 5 theme for That's IT Tools SEO blog
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* === Typography === */
body { font-family: 'Inter', sans-serif; font-size: 1.125rem; line-height: 1.8; color: #1D2B35; background: #fff; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: #1D2B35; }
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-top: 2.5rem; }
h3 { font-size: 1.5rem; }
a { color: #2563EB; text-decoration: none; transition: color 0.2s; }
a:hover { color: #1D4ED8; }

/* === Navbar === */
.navbar { padding: 0.75rem 0; transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.navbar-brand { font-weight: 700; font-size: 1.25rem; color: #1D2B35 !important; display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand img { width: 36px; height: 36px; }
.nav-link { font-weight: 500; color: #64748B !important; font-size: 0.95rem; padding: 0.5rem 1rem !important; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #2563EB !important; }

/* === Hero Section === */
.hero-section { background: #F8F9FE; padding: 5rem 0; }
.hero-section h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1.25rem; }
.hero-section .lead { font-size: 1.25rem; color: #64748B; max-width: 540px; }
@media (max-width: 768px) { .hero-section h1 { font-size: 2rem; } .hero-section { padding: 3rem 0; } }

/* === Buttons === */
.btn-primary { background: #2563EB; border-color: #2563EB; border-radius: 8px; padding: 0.625rem 1.5rem; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn-primary:hover { background: #1D4ED8; border-color: #1D4ED8; transform: translateY(-1px); }
.btn-outline-primary { color: #2563EB; border-color: #2563EB; border-radius: 8px; padding: 0.625rem 1.5rem; font-weight: 600; font-size: 0.95rem; }
.btn-outline-primary:hover { background: #2563EB; border-color: #2563EB; transform: translateY(-1px); }

/* === Cards === */
.card { border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card-img-top { aspect-ratio: 16/9; object-fit: cover; }
.card .card-body { padding: 1.5rem; }
.card .card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.card .card-title a { color: #1D2B35; }
.card .card-title a:hover { color: #2563EB; }
.card .card-text { color: #64748B; font-size: 0.9rem; line-height: 1.6; }
.card .card-meta { font-size: 0.8rem; color: #94A3B8; }

/* === Category Badge === */
.badge-category { background: #EFF6FF; color: #2563EB; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.25rem 0.75rem; border-radius: 999px; }

/* === Section Styling === */
.section-light { background: #F8F9FE; }
.section-padding { padding: 5rem 0; }
@media (max-width: 768px) { .section-padding { padding: 3rem 0; } }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.section-subtitle { color: #64748B; font-size: 1.1rem; max-width: 600px; }

/* === Feature Cards (Home) === */
.feature-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 2rem; transition: all 0.3s ease; height: 100%; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: #2563EB; }
.feature-card .feature-icon { width: 48px; height: 48px; background: #EFF6FF; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: #2563EB; font-size: 1.25rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: #64748B; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.feature-card .feature-link { font-size: 0.9rem; font-weight: 600; color: #2563EB; }

/* === Author Section === */
.author-section { background: #F8F9FE; border-radius: 16px; padding: 3rem; }
.author-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.author-photo-sm { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* === Author Box (Single Post) === */
.author-box { background: #F8F9FE; border-radius: 12px; padding: 2rem; margin: 3rem 0; }

/* === Single Post === */
.single-post-content { max-width: 740px; margin: 0 auto; }
.single-post-content p { margin-bottom: 1.5rem; }
.single-post-content h2 { margin-top: 3rem; margin-bottom: 1rem; padding-top: 1rem; }
.single-post-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.single-post-content ul, .single-post-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.single-post-content li { margin-bottom: 0.5rem; }
.single-post-content blockquote { border-left: 4px solid #2563EB; background: #F0F7FF; padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-style: italic; }
.single-post-content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: 0.95rem; }
.single-post-content table th { background: #F8F9FE; font-weight: 600; text-align: left; padding: 0.75rem 1rem; border: 1px solid #E2E8F0; }
.single-post-content table td { padding: 0.75rem 1rem; border: 1px solid #E2E8F0; }
.single-post-content table tr:nth-child(even) { background: #FAFBFC; }
.single-post-content pre { background: #1E293B; color: #E2E8F0; padding: 1.5rem; border-radius: 8px; overflow-x: auto; font-size: 0.875rem; margin: 1.5rem 0; }
.single-post-content code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.single-post-content p code { background: #F1F5F9; color: #1D2B35; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.875rem; }
.post-meta { color: #64748B; font-size: 0.9rem; }
.post-meta i { color: #94A3B8; }
.featured-image { border-radius: 12px; overflow: hidden; margin-bottom: 2.5rem; }
.featured-image img { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; }

/* === Reading Progress Bar === */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: #2563EB; z-index: 9999; transition: width 0.1s; width: 0%; }

/* === Table of Contents === */
.toc { position: sticky; top: 100px; }
.toc-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94A3B8; margin-bottom: 1rem; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a { font-size: 0.85rem; color: #64748B; padding-left: 0.75rem; border-left: 2px solid #E2E8F0; display: block; transition: all 0.2s; line-height: 1.4; }
.toc-list a:hover, .toc-list a.active { color: #2563EB; border-left-color: #2563EB; }

/* === Footer === */
.site-footer { background: #0F172A; color: #94A3B8; padding: 4rem 0 2rem; }
.site-footer h5 { color: #F8FAFC; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.site-footer a { color: #94A3B8; transition: color 0.2s; }
.site-footer a:hover { color: #F8FAFC; }
.site-footer .footer-brand { color: #F8FAFC; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.site-footer .footer-desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid #1E293B; margin-top: 3rem; padding-top: 1.5rem; font-size: 0.85rem; }
.footer-social a { color: #94A3B8; font-size: 1.25rem; margin-right: 1rem; transition: color 0.2s; }
.footer-social a:hover { color: #F8FAFC; }

/* === Breadcrumbs === */
.breadcrumb { font-size: 0.85rem; margin-bottom: 1.5rem; }
.breadcrumb-item a { color: #64748B; }
.breadcrumb-item.active { color: #94A3B8; }

/* === Pagination === */
.pagination .page-link { border: none; color: #64748B; font-weight: 500; padding: 0.5rem 0.875rem; border-radius: 8px; margin: 0 0.15rem; }
.pagination .page-link:hover { background: #EFF6FF; color: #2563EB; }
.pagination .page-item.active .page-link { background: #2563EB; color: #fff; }

/* === Back to Top === */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: #2563EB; color: #fff; border: none; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 1.25rem; z-index: 999; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.back-to-top:hover { background: #1D4ED8; transform: translateY(-2px); }
.back-to-top.show { display: flex; }

/* === 404 === */
.error-404 { text-align: center; padding: 5rem 0; }
.error-404 h1 { font-size: 8rem; font-weight: 800; color: #E2E8F0; line-height: 1; }
.error-404 h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.error-404 p { color: #64748B; margin-bottom: 2rem; }

/* === WordPress Core Overrides === */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: 8px; }
.wp-block-table table { width: 100%; }
.wp-block-code pre { background: #1E293B; color: #E2E8F0; padding: 1.5rem; border-radius: 8px; }
.wp-block-list { padding-left: 1.5rem; }
figure.wp-block-table { overflow-x: auto; margin: 1.5rem 0; }

/* === About Page === */
.about-hero { background: linear-gradient(135deg, #F8F9FE 0%, #EFF6FF 100%); padding: 5rem 0; }
.about-hero h1 { font-size: 2.75rem; font-weight: 800; }
.about-hero .lead { font-size: 1.2rem; color: #475569; line-height: 1.7; }
.about-hero-photo-wrap { position: relative; display: inline-block; max-width: 100%; overflow: hidden; }
.about-hero-photo { width: 240px; height: 240px; max-width: 100%; border-radius: 20px; object-fit: cover; box-shadow: 0 20px 60px rgba(37,99,235,0.15); border: 4px solid #fff; display: block; margin: 0 auto; }
.about-hero .col-lg-4 { overflow: hidden; }
.about-hero-badge { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); background: #2563EB; color: #fff; padding: 0.4rem 1.25rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.about-hero-badge i { margin-right: 0.25rem; }

.stats-bar { background: #fff; padding: 3rem 0; border-bottom: 1px solid #F1F5F9; }
.stat-item { padding: 1rem; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: #2563EB; line-height: 1.2; }
.stat-label { font-size: 0.9rem; color: #64748B; font-weight: 500; margin-top: 0.25rem; }

.experience-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 2rem; text-align: center; transition: all 0.3s ease; height: 100%; }
.experience-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: #2563EB; }
.experience-icon { width: 64px; height: 64px; background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.5rem; color: #2563EB; }
.experience-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.experience-card p { color: #64748B; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }

.approach-item { display: flex; gap: 1.25rem; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 1.75rem; transition: all 0.3s ease; height: 100%; }
.approach-item:hover { border-color: #2563EB; box-shadow: 0 4px 20px rgba(37,99,235,0.08); }
.approach-number { font-size: 2rem; font-weight: 800; color: #DBEAFE; line-height: 1; min-width: 50px; }
.approach-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; margin-top: 0; }
.approach-item p { color: #64748B; font-size: 0.9rem; line-height: 1.6; margin-bottom: 0; }

/* === Contact Page === */
.contact-form-wrap { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 2.5rem; }
.contact-form-wrap .form-label { font-size: 0.9rem; font-weight: 600; color: #1D2B35; margin-bottom: 0.375rem; }
.contact-form-wrap .form-control,
.contact-form-wrap .form-select { border: 1px solid #E2E8F0; border-radius: 8px; padding: 0.625rem 0.875rem; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form-wrap .form-control:focus,
.contact-form-wrap .form-select:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.contact-form-wrap .input-group-text { background: #F8F9FE; border: 1px solid #E2E8F0; border-radius: 8px 0 0 8px; color: #94A3B8; font-size: 0.95rem; }
.contact-form-wrap .input-group .form-control { border-radius: 0 8px 8px 0; }
.contact-form-wrap textarea.form-control { border-radius: 8px; }

.contact-info-card { background: #F8F9FE; border-radius: 16px; padding: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid #E2E8F0; }
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item:first-of-type { padding-top: 0; }
.contact-info-icon { width: 40px; height: 40px; background: #EFF6FF; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #2563EB; font-size: 1rem; flex-shrink: 0; }
.contact-info-label { font-size: 0.8rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.contact-info-value { font-size: 0.95rem; font-weight: 600; color: #1D2B35; }

.help-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.625rem 0; font-size: 0.9rem; color: #64748B; line-height: 1.5; }
.help-item i { margin-top: 0.2rem; flex-shrink: 0; }

.success-icon-wrap { display: flex; justify-content: center; }
.success-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #10B981 0%, #059669 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .about-hero { padding: 3rem 0; }
    .about-hero-photo { width: 200px; height: 200px; }
    .about-hero h1 { font-size: 2rem; }
    .contact-form-wrap { padding: 1.5rem; }
}

/* === Responsive === */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  .author-section { padding: 2rem; }
  .author-photo { width: 120px; height: 120px; }
}
@media (max-width: 576px) {
  body { font-size: 1rem; }
  .section-padding { padding: 2.5rem 0; }
  .hero-section h1 { font-size: 1.75rem; }
}
