/* =========================================================
   TOOLCRAFT HUB - MODERN DESIGN SYSTEM & RESPONSIVE LAYOUT
   ========================================================= */

/* Smooth Scroll with Sticky Header Offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Header Height Offset */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
}

/* ===== STICKY GLASS HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #818cf8;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #3a506b 100%);
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #c7d2fe;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
    font-weight: 600;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero p {
    color: #94a3b8;
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.search-container {
    max-width: 650px;
    margin: 0 auto;
}

#searchBox {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#searchBox:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

/* ===== HIDDEN AD CONTAINERS UNTIL ADSENSE CODE IS ACTIVE ===== */
.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Blank Placeholders are hidden for live visitors */
.ad-placeholder {
    display: none; 
}

.ad-label {
    display: none;
}

/* ===== MAIN CONTENT & SECTIONS ===== */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tools-section {
    margin-bottom: 50px;
}

/* ===== PREMIUM BANNER STYLE HEADINGS ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(11, 19, 43, 0.12);
    border-left: 6px solid #6366f1; /* Bright Indigo Accent Bar */
}

.section-header h2 {
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    margin: 0;
}

.tool-count {
    background: rgba(255, 255, 255, 0.12);
    color: #e0e7ff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

/* ===== TOOL CARDS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.tool-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hover Top Accent Line */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    color: #4f46e5;
}

.tool-card:hover::before {
    opacity: 1;
}

/* ===== FOOTER ===== */
/* =========================================================
   REDESIGNED MODERN FOOTER (FOR SEO & ADSENSE)
   ========================================================= */
.site-footer {
    background: #0b132b;
    color: #94a3b8;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    max-width: 320px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #818cf8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
}
}

/* ===== MOBILE RESPONSIVE ===== */
@media(max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-menu a {
        margin: 0;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .section-header {
        padding: 14px 18px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .tool-card {
        padding: 16px;
        font-size: 14px;
    }
}

/* --- COMPACT FOOTER OVERRIDE --- */
.site-footer {
    padding: 20px 0 !important;
}
.footer-container {
    gap: 15px !important;
}
.footer-col h3 {
    margin-bottom: 8px !important;
}
.footer-col ul li {
    margin-bottom: 4px !important;
}
.footer-bottom {
    padding-top: 10px !important;
    margin-top: 15px !important;
}