/* EM Toolkit - Simplified Stylesheet */

/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ===== Layout Utilities ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Header & Navigation ===== */
.site-header {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    color: #e50a0a;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #e50a0a;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #b30808;
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    border: 1px solid #eee;
    z-index: 100;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #e50a0a;
}

.dropdown-item:hover {
    background: #f9f9f9;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== Tools Section ===== */
.tools-section {
    padding: 3rem 1rem;
    background: white;
}

.tools-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.section-explainer {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #333;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    height: 100%; /* Make link take full height of grid cell */
}

.tool-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    height: 100%; /* Make card take full height of link */
    display: flex;
        flex-direction: column;
    justify-content: space-between; /* Distributes content evenly */
    }
    
.tool-card:hover {
    transform: translateY(-2px);
    }
    
.tool-card h3 {
    color: #000;
    margin-bottom: 0.5rem;
}

.tool-status {
    display: inline-block;
    background: #fff;
    color: #e50a0a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid #e50a0a;
}

/* ===== About Section ===== */
.about-section {
    padding: 3rem 1rem;
    background: #fff;
    text-align: center;
    border-top: 1px solid #eee;
}

/* ===== Footer ===== */
.site-footer {
    background: #fff;
    color: #333;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* ===== Responsive Design ===== */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        margin-top: 0.5rem;
        border: 1px solid #eee;
    }
}
