/* GLOBAL BASE */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
}

.top-bar {
    background-color:  #FFD3AC;
    color: blue;
    text-align: center;
    padding: 8px;
    font-size: 14px;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #006EE4, #FFD3AC);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1000;
}
.logo a {
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    text-transform: none;
    letter-spacing: 0.02em;
}
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    display: none !important;  /* Always hidden unless on mobile */
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 1100;
}
/* Show menu icon only on mobile */
@media (max-width: 700px) {
    .menu-toggle {
        display: block !important;
    }
}

/* NAVIGATION */
nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
nav ul li {
    margin: 0 12px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}
nav ul li a:hover {
    text-decoration: underline;
}
@media (max-width: 700px) {
    nav {
        width: 100%;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 0;
        background: linear-gradient(135deg, #007bff, #0056b3);
        position: absolute;
        left: 0;
        top: 60px;
        z-index: 999;
        box-shadow: 0 6px 16px rgba(0,0,0,0.14);
    }
    nav ul.show-menu {
        display: flex;
    }
    nav ul li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
        padding-left: 22px;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
}

/* TOOLS CARDS */
.tools-container, .suggested-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 44px;
    row-gap: 38px;
    padding: 38px 18px;
    max-width: 1000px;
    margin: auto;
}
.tool-card, .suggested-tools .tool-card {
    background-color: #FFD3AC;
    min-height: 110px;
    padding: 28px 15px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.08rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.tool-card a, .suggested-tools .tool-card a {
    color: #135ba1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.07em;
    letter-spacing: 0.02em;
}
.tool-card:hover, .suggested-tools .tool-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,0.13);
    background: #e7f2ff;
}

/* MAKE CARDS 1 PER ROW ON MOBILE EVERYWHERE */
@media (max-width: 700px) {
    .tools-container, .suggested-tools {
        grid-template-columns: 1fr !important;
        padding: 14px 4px !important;
        gap: 14px !important;
    }
    .tool-card, .suggested-tools .tool-card {
        padding: 17px 6px !important;
        font-size: 1rem !important;
    }
}

/* FORM, BOXES, ETC */
section, main, .counter-tool-box, .pdf-tool-box, .yt-title-tool-box,
.yt-desc-tool-box, .yt-tags-tool-box, .yt-transcript-tool-box,
.audio-tool-box, .upload-tool-box, .bg-tool-box {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto 20px auto;
    max-width: 1000px;
}

/* INFO SECTIONS */
section[class*="-info"] {
    background: #f3f8fc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 22px 28px 18px 28px;
    margin: 0 auto 28px auto;
    max-width: 900px;
}

/* FOOTER - CONSISTENT ON ALL PAGES */
footer {
    background: linear-gradient(135deg, #006EE4, #FFD3AC);
    color: white;
    padding: 18px 30px 10px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
}
.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
}
.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.16s;
}
.footer-links a:hover {
    text-decoration: underline;
    color: #2563eb;
}
footer .copyright {
    color: white;
    font-size: 14px;
    letter-spacing: 0.01em;
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

/* ------ MOBILE FOOTER FIX ------ */
@media (max-width: 700px) {
    footer {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 13px 7px 10px 7px;
        min-height: unset;
    }
    .footer-links {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center;
        flex-wrap: wrap !important;
        gap: 17px !important;
        margin-bottom: 7px;
        margin-top: 1px;
        max-width: 350px;
        width: 100%;
    }
    .footer-links a {
        flex: 0 1 auto;
        min-width: 38%;
        margin-bottom: 3px;
        text-align: center;
        white-space: nowrap;
    }
    footer .copyright {
        margin-top: 3px;
        text-align: center;
    }
}
/* Tighter gap on very small screens */
@media (max-width: 400px) {
    .footer-links {
        gap: 6px !important;
    }
    footer .copyright {
        font-size: 13px;
    }
}
.tool-info-box h3,
.pdf-tool-info h3 {
    color: #22c55e;
    margin-top: 0;
}
