/* --- 1. The Vibrant Color Palette --- */
:root {
    --bg-light: #F8FAFC;       /* Clean off-white background */
    --text-dark: #1E293B;      /* Easy reading slate */
    --primary: #4F46E5;        /* Deep Indigo (Headers/Brand) */
    --secondary: #9333EA;      /* Vibrant Purple (Highlights) */
    --accent-teal: #0D9488;    /* Teal (Success/Buttons) */
    --accent-rose: #E11D48;    /* Rose (Alerts/Important) */
    --accent-amber: #F59E0B;   /* Amber (Warnings/New Tags) */
    --card-bg: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

/* --- 2. Base Reset & Typography --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 3. Navbar Styling --- */
.site-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.brand-logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: white; }
.nav-controls { display: flex; gap: 15px; align-items: center; }
.lang-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.lang-toggle:hover { background: white; color: var(--primary); }

/* --- 4. Main Layout & CSS Grid --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    flex: 1;
}
/* This creates the blog-style grid automatically */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* --- 5. The Content Cards --- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary); /* Gives a colorful top edge */
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); }
.card.teal-edge { border-color: var(--accent-teal); }
.card.rose-edge { border-color: var(--accent-rose); }
.card.amber-edge { border-color: var(--accent-amber); }

/* --- 6. Footer --- */
.site-footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}
.site-footer a { color: var(--accent-amber); text-decoration: none; margin: 0 10px; }