/* ==============================
   ToolStrive - Main Styles
   Clean, responsive & ad-friendly
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: auto;
}


/* NAVBAR */

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #2563eb;
    font-size: 25px;
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

nav a:hover {
    color: #2563eb;
}


/* HERO */

.hero {
    padding: 80px 0 70px;
    text-align: center;
    background: #ffffff;
}

.hero h1 {
    font-size: 44px;
    color: #0f172a;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 30px;
}

.search-box {
    max-width: 650px;
    margin: auto;
}

.search-box input {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    font-size: 16px;
    background: #ffffff;
}

.search-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* TOOLS */

.tools-section {
    padding: 70px 0;
}

.tools-section h2,
.categories h2,
.about h2 {
    text-align: center;
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 35px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tool-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    min-height: 190px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.tool-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 19px;
    color: #0f172a;
    margin-bottom: 8px;
}

.tool-card p {
    color: #64748b;
    font-size: 14px;
}


/* CATEGORIES */

.categories {
    padding: 70px 0;
    background: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.category-card span {
    display: block;
    font-size: 34px;
    margin-bottom: 12px;
}

.category-card h3 {
    color: #0f172a;
    margin-bottom: 7px;
}

.category-card p {
    color: #64748b;
    font-size: 14px;
}


/* ABOUT */

.about {
    padding: 70px 0;
}

.about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    color: #475569;
    font-size: 16px;
}


/* AD AREA
   Keep advertisements clearly separated
   from buttons and interactive tools.
*/

.ad-placeholder {
    padding: 45px 0;
    background: #ffffff;
}

.ad-box {
    max-width: 970px;
    min-height: 120px;
    margin: auto;
    border: 1px dashed #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* FOOTER */

footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 35px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

footer p {
    font-size: 13px;
    color: #94a3b8;
}


/* TABLET */

@media (max-width: 900px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 37px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .nav-content {
        min-height: 62px;
    }

    .logo {
        font-size: 21px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 13px;
    }

    nav a:nth-child(3) {
        display: none;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .tools-section,
    .categories,
    .about {
        padding: 50px 0;
    }

    .tool-card {
        min-height: auto;
    }

    .ad-placeholder {
        padding: 35px 0;
    }
}