/* ===============================
   TOOLS PAGE CSS
   /assets/css/tools.css
=============================== */

:root {
    --blue: #3b82f6;
    --blue-dark: #1d4ed8;
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 16px;
}

/* Reset body margin to handle fixed header */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Main Container - FIXED: Add padding-top equal to header height */
.tools-page-wrapper {
    width: 100%;
    overflow-x: hidden;
    padding-top: 70px; /* This is the FIX - pushes content below fixed header */
}

/* Hero Section */
.hero-section {
    min-height: calc(520px - 70px); /* Subtract header height */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    padding: 2.5rem 1rem;
    margin-top: 0;
}

.hero-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    min-height: calc(560px - 70px); /* Subtract header height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 20px; /* Extra spacing */
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
}

/* Stats */
.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 1.25rem 0 40px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    min-width: 140px;
    transition: transform 0.2s;
    text-align: center;
    flex: 1;
    max-width: 180px;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: .9rem;
    color: var(--muted);
    display: block;
    line-height: 1.4;
}

/* CTA Buttons */
.cta-buttons-container {
    display: flex;
    gap: 16px;
    justify-content: center;
    min-height: 72px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-button {
    min-height: 56px;
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    color: #fff;
}

.cta-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.cta-secondary {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
}

/* Tools Section */
.tools-section {
    padding: 72px 0;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    width: 100%;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
    text-align: center;
}

.section-subtitle {
    color: var(--muted);
    max-width: 700px;
    margin: 10px auto 0;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
    width: 100%;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tool-icon .icon {
    width: 32px;
    height: 32px;
    color: var(--blue);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.tool-card > p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 22px;
    flex-grow: 1;
    text-align: center;
}

/* Tool Features */
.tool-features {
    margin: 1rem 0 1.5rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.feature-check {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Tool CTA Button */
.tool-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #eff6ff;
    color: var(--blue-dark);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.tool-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    color: var(--blue-dark);
}

.tool-cta .icon {
    width: 18px;
    height: 18px;
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    padding: 72px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    transition: transform 0.25s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon .icon {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Icon Base Styles */
.icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* FIXED HEADER FIX for mobile */
    .tools-page-wrapper {
        padding-top: 70px; /* Same as desktop */
    }
    
    .hero-section {
        min-height: calc(620px - 70px);
        padding: 2rem 1rem;
    }
    
    .hero-content {
        min-height: calc(600px - 70px);
        padding: 0 10px;
    }
    
    .hero-title {
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .stat-card {
        width: 100%;
        max-width: 280px;
        padding: 16px 20px;
    }
    
    .cta-buttons-container {
        flex-direction: column;
        gap: 14px;
        margin-top: 30px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 320px;
        min-height: 52px;
    }
    
    .tools-section {
        padding: 48px 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        max-width: 100%;
        padding: 1.75rem;
        margin: 0;
    }
    
    .tool-cta {
        min-height: 48px;
        border-radius: 12px;
    }
    
    .features-section {
        padding: 48px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .premium-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section .container,
    .tools-section .container,
    .features-section .container {
        padding: 0 30px;
    }
}

/* Print Styles */
@media print {
    .cta-button,
    .tool-cta {
        display: none;
    }
    
    .tool-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .tool-card:hover {
        transform: none;
    }
}


/* ===============================
   TOOL PAGE SPECIFIC STYLES
=============================== */

/* Tool page wrapper - for individual tool pages */
.tool-page-wrapper {
    padding-top: 70px; /* Match header height */
    min-height: 100vh;
    background: #f6f7fb;
}

/* Main container for tool pages */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Tool hero section for individual tools */
.tool-hero {
    padding: 40px 0;
    text-align: center;
}

.tool-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-hero-content h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.tool-hero-content p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Tool card styling */
.tool-card-inner {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    margin-bottom: 30px;
}

/* Fix for tool page body */
body.tool-page {
    padding-top: 0 !important; /* Remove body padding */
    margin: 0;
}

body.tool-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Responsive for tool pages */
@media (max-width: 768px) {
    .tool-page-wrapper {
        padding-top: 64px;
    }
    
    .tool-hero {
        padding: 30px 0;
    }
    
    .tool-hero-content h1 {
        font-size: 2rem;
    }
    
    .tool-container {
        padding: 0 15px;
    }
}

