/*
 * Custom Stylesheet for Text Tools Hub
 * Defines the color palette, fonts, and custom component styles.
 */
:root {
    --primary: #687FE5;
    --accent-lavender: #ede1f7;
    --accent-pink: #FEEBF6;
    --accent-peach: #FCD8CD;
    --accent-green: #E1F0EB;
    --text-dark: #1f2937; /* gray-800 */
    --text-light: #4b5563; /* gray-600 */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb; /* A very light gray for the background */
    color: var(--text-dark);
}

.bg-primary { background-color: var(--primary); }
.text-primary { color: var(--primary); }
.hover\:bg-primary-dark:hover { background-color: #5A6EC2; } /* A darker shade for hover */

.bg-accent-pink { background-color: var(--accent-pink); }
.bg-accent-peach { background-color: var(--accent-peach); }
.bg-accent-lavender { background-color: var(--accent-lavender); }
.bg-accent-green { background-color: var(--accent-green); }

.tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb; /* gray-200 */
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.dropdown-menu {
    display: none;
}

/* This class will be toggled by JavaScript to show/hide the dropdown */
.dropdown.is-active .dropdown-menu {
    display: block;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    border-top: 1px solid transparent;
}

.mobile-menu.is-open {
    max-height: 500px; /* A large enough value to show all links */
    border-top-color: #e5e7eb; /* gray-200 */
}


/* --- LINK HOVER & ACTIVE EFFECTS --- */
header a:hover,
header .dropdown button:hover,
footer a:hover {
    color: var(--primary);
}

/* This class is added by JS to highlight the current page's link */
.nav-active {
    color: var(--primary) !important;
    font-weight: 600; /* semibold */
}

/* --- STICKY FOOTER LAYOUT --- */
.body-flex {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-flex-grow {
    flex-grow: 1;
}

/* --- PROSE STYLES (for blog posts, privacy page, etc.) --- */
.prose h1 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 800; /* font-extrabold */
    color: #111827; /* text-gray-900 */
    margin-bottom: 1rem; /* mb-4 */
    line-height: 2.5rem;
}
.prose h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 1rem; /* mb-4 */
}
.prose p {
    color: var(--text-light);
    line-height: 1.625; /* leading-relaxed */
    margin-bottom: 1rem; /* mb-4 */
}
/* Default UL styling for pages like privacy.html */
.prose ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 1rem; /* mb-4 */
    color: var(--text-light);
    padding-left: 1rem;
}
.prose ul li {
    margin-bottom: 0.5rem; /* space-y-2 */
}
.prose a {
    color: var(--primary);
}
.prose a:hover {
    text-decoration: underline;
}
.prose hr {
    margin-top: 2rem; /* my-8 */
    margin-bottom: 2rem; /* my-8 */
    border-color: #e5e7eb; /* border-gray-200 */
    border-top-width: 1px;
}

/* --- BLOG POST SPECIFIC STYLES --- */
.prose .numbered-list {
    list-style: none;
    padding-left: 0;
    counter-reset: list-counter;
}
.prose .numbered-list > li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 4rem; /* Space for the number */
    margin-bottom: 2.5rem;
}
.prose .numbered-list > li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: -0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; /* Circle size */
    height: 3rem; /* Circle size */
    border-radius: 9999px; /* rounded-full */
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}
.prose .perfect-for-block {
    background-color: #f9fafb;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}
.prose .perfect-for-block p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* --- BLOG LISTING STYLES --- */
.blog-card {
    display: block;
    background-color: white;
    padding: 1.5rem; /* p-6 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.blog-card h2 {
    color: var(--text-dark);
    transition: color 0.2s ease-in-out;
}
.blog-card:hover h2 {
    color: var(--primary);
}

/* --- SUPERSCRIPT/SUBSCRIPT STYLES --- */
.sup-char {
    position: relative;
    top: -0.2em; /* Lifts the text up */
    font-size: 0.75em; 
}
.sub-char {
    position: relative;
    top: -0.1em; /* Pushes the text down */
    font-size: 0.75em;
}


@media (min-width: 768px) { /* md breakpoint */
    .prose h1 {
        font-size: 3rem; /* md:text-5xl */
        line-height: 3.25rem;
    }
}
