/* assets/css/style.css */

:root {
    /* --- COLOR PALETTE (Softer, Premium Slate/Blue) --- */
    --primary-color: #2563eb;       /* Royal Blue */
    --primary-hover: #1d4ed8;       /* Darker Blue */
    
    /* Backgrounds */
    --bg-color: #f8fafc;            /* Slate 50 (Soft Grey-Blue) - NOT Pure White */
    --card-bg: #ffffff;             /* White Cards */
    
    /* Text */
    --text-main: #1e293b;           /* Slate 800 (Softer than Black) */
    --text-muted: #64748b;          /* Slate 500 (Muted text) */
    
    /* Borders & Shadows */
    --border-color: #e2e8f0;        /* Light Slate Border */
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Dimensions */
    --header-height: 70px;
    --container-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color); /* Soft Gray Background */
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px; /* Space for fixed header */
    -webkit-font-smoothing: antialiased;
}

/* =========================
   LAYOUT & CONTAINER
   ========================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER (Fixed & Clean)
   ========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #ffffff; /* Solid White Header */
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon { font-size: 1.4rem; }

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-link:hover { color: var(--primary-color); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 5px; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown:hover .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.btn:hover { background-color: var(--primary-hover); }

.btn-secondary {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* =========================
   TOOL CARDS (Grid)
   ========================= */
.tools-section {
    padding: 2rem 0;
    background-color: transparent;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: #ffffff; /* White card on gray background */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color); /* Subtle border */
    box-shadow: var(--shadow-sm); /* Soft shadow */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.tool-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.icon-box svg { width: 28px; height: 28px; }

/* =========================
   UPLOAD ZONE
   ========================= */
.drop-zone {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.2s;
}
.drop-zone:hover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}
.drop-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--primary-color); }

/* =========================
   FAQ SECTION
   ========================= */
.faq-section {
    padding: 4rem 0;
    background-color: transparent;
    border-top: 1px solid var(--border-color);
}
.faq-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: var(--text-main); }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    background: #fff;
    color: var(--text-main);
}
.faq-answer { padding: 1.25rem; background: #fff; border-top: 1px solid #f1f5f9; }
.faq-answer p { color: var(--text-muted); }

/* =========================
   RELATED TOOLS
   ========================= */
.related-tools-section {
    padding: 3rem 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}
.related-tools-section h3 { text-align: center; margin-bottom: 1.5rem; color: var(--text-main); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.related-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.2s;
}
.related-card:hover { border-color: var(--primary-color); background: #fff; }
.related-icon { font-size: 1.5rem; margin-right: 1rem; }
.related-info strong { display: block; color: var(--text-main); font-size: 0.95rem; }
.related-info span { font-size: 0.8rem; color: var(--text-muted); }

/* =========================
   FOOTER
   ========================= */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: auto;
    color: var(--text-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-heading { color: var(--text-main); font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; font-size: 0.9rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; text-align: center; font-size: 0.9rem; }

/* =========================
   UTILITIES
   ========================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.hidden { display: none; }

/* =========================
   MOBILE RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .site-header { height: auto; }
    .mobile-toggle { display: flex; padding: 10px; margin-right: -10px; }
    
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .main-nav.active { display: block; }
    
    .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
    .nav-link { display: block; width: 100%; padding: 15px 0; border-bottom: 1px solid #f1f5f9; text-align: left; }
    
    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
        width: 100%;
        padding-left: 15px;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }
    .dropdown.active .dropdown-menu { display: block; }

    /* Grids to Single Column */
    .tools-grid, .footer-grid, .related-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .tool-card { padding: 1.5rem; align-items: center; text-align: center; }
    .btn, .btn-secondary, .file-input-label { width: 100%; display: block; margin-bottom: 10px; }
}

/* =========================
   CLEAN FOOTER STYLES
   ========================= */

.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Brand takes more space */
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Mobile: Stack everything */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Center align items on mobile */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Brand Styling */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none !important; /* Forces no underline */
    margin-bottom: 0.75rem;
}

.brand-desc {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 300px;
}

/* Fixed Privacy Badge */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0fdf4; /* Light Green */
    color: #15803d; /* Dark Green */
    border: 1px solid #dcfce7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Links Styling */
.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Bottom Copyright */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}