/* Basic styles for the password generator site */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: #1d4ed8;
    color: #fff;
    padding: 15px 0;
}
.site-header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.main-nav li {
    margin-right: 15px;
}
.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.main-nav a:hover {
    text-decoration: underline;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}
.button.primary {
    background-color: #2563eb;
    color: #fff;
}
.button.primary:hover {
    background-color: #1e40af;
}

/* Feature grid */
.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.feature-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.post-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.post-card h3 {
    margin-top: 0;
}
.post-card a.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
.site-footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 40px 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.footer-col h3 {
    color: #f3f4f6;
    margin-top: 0;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li {
    margin-bottom: 6px;
}
.footer-col a {
    color: #9ca3af;
    text-decoration: none;
}
.footer-col a:hover {
    color: #f3f4f6;
}
.copyright {
    text-align: center;
    font-size: 0.9rem;
}

/* Forms */
.tool-form label,
.contact-form label {
    display: block;
    margin-bottom: 8px;
}
.tool-form input[type="number"],
.tool-form input[type="text"],
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin-top: 4px;
}
.generated-password,
.bulk-results {
    margin-top: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.generated-code {
    font-family: monospace;
    font-size: 1.2rem;
    word-break: break-all;
}

/* Category hero */
.category-hero {
    background-color: #e5e7eb;
    padding: 40px 0;
    margin-bottom: 20px;
}

.category-posts .post-card {
    margin-bottom: 20px;
}

/* Misc */
h2, h3 {
    color: #1f2937;
}
p {
    margin: 0 0 1em;
}