* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo .heart { color: #e53e3e; }
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover { color: #1a1a1a; }
.lang-toggle {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.lang-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    transition: all 0.15s;
}
.lang-btn.active {
    background: #1a1a1a;
    color: #fff;
}

/* HERO */
.hero {
    text-align: center;
    padding: 64px 24px 48px;
    border-bottom: 1px solid #e5e5e5;
}
.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 17px;
    color: #666;
    max-width: 540px;
    margin: 0 auto 28px;
}
.hero-cta {
    display: inline-flex;
    gap: 12px;
}

/* BUTTONS */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-dark { background: #1a1a1a; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { background: #fff; color: #1a1a1a; border: 1px solid #ddd; }
.btn-outline:hover { border-color: #999; }
.btn-danger { background: #e53e3e; color: #fff; }
.btn-danger:hover { background: #c53030; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* SECTIONS */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px;
}
.section-header {
    margin-bottom: 32px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}
.section-header p {
    color: #888;
    font-size: 15px;
}
.section-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    max-width: 1100px;
    margin: 0 auto;
}

/* AD SLOT */
.ad-slot {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    text-align: center;
}

/* TOOL CARDS */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.tool-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tool-emoji {
    width: 44px;
    height: 44px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.tool-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tool-info p { font-size: 13px; color: #777; line-height: 1.5; }
.tool-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-free { background: #e6f9f0; color: #0d7a4a; }
.badge-ai { background: #eef0ff; color: #4f46e5; }

/* DIRECTORY */
.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.dir-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s;
}
.dir-item:hover { border-color: #ccc; }
.dir-item-icon { font-size: 24px; }
.dir-item h3 { font-size: 14px; font-weight: 600; }
.dir-item p { font-size: 11px; color: #999; margin-top: 2px; }

/* ENTRY CARDS (directory listing) */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.entry-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.15s;
}
.entry-card:hover { border-color: #ccc; }
.entry-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.entry-card p { font-size: 13px; color: #777; line-height: 1.5; }
.entry-card .pricing { font-size: 12px; color: #0d7a4a; font-weight: 600; margin-top: 8px; }
.entry-card .tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.entry-card .tag { font-size: 10px; background: #f5f5f5; padding: 2px 8px; border-radius: 4px; color: #888; }

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.blog-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.15s;
}
.blog-card:hover { border-color: #ccc; }
.blog-card .date { font-size: 12px; color: #bbb; margin-bottom: 8px; }
.blog-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 13px; color: #777; line-height: 1.5; }

/* BLOG POST */
.blog-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px;
}
.blog-content h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.blog-content .meta { color: #999; font-size: 14px; margin-bottom: 32px; }
.blog-content h2 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; }
.blog-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.blog-content p { margin-bottom: 16px; font-size: 16px; line-height: 1.8; color: #333; }
.blog-content ul, .blog-content ol { margin: 0 0 16px 24px; }
.blog-content li { margin-bottom: 6px; font-size: 16px; color: #333; }
.blog-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.blog-content pre { background: #f5f5f5; padding: 16px; border-radius: 8px; overflow-x: auto; margin-bottom: 16px; }
.blog-content pre code { background: none; padding: 0; }
.blog-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.blog-content a { color: #2563eb; text-decoration: underline; }

/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: #1a1a1a; }

/* FOOTER */
.footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 24px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-left { font-size: 13px; color: #999; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: #888; }
.footer-links a:hover { color: #555; }

/* FORMS (admin) */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #333; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #333;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* TABLE (admin) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e5e5e5;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.admin-table tr:hover td { background: #fafafa; }

/* ALERT */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success { background: #e6f9f0; color: #0d7a4a; }
.alert-error { background: #fef0f0; color: #c53030; }

/* MOBILE */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 18px;
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }
    .nav-links.open { display: flex; }
    .hero h1 { font-size: 28px; }
    .tools-grid, .blog-grid, .entry-grid { grid-template-columns: 1fr; }
    .dir-grid { grid-template-columns: 1fr 1fr; }
    .footer { flex-direction: column; text-align: center; }
    .hero-cta { flex-direction: column; align-items: center; }
    .form-row { flex-direction: column; gap: 0; }
}
@media (max-width: 480px) {
    .dir-grid { grid-template-columns: 1fr; }
}
