/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Times, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

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

/* Links */
a {
    color: #00f;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

a:hover {
    text-decoration: none;
}

/* Header */
header {
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

header h1 a {
    color: #000;
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: underline;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

nav {
    font-size: 14px;
}

/* Messages */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Filter buttons */
.filter-buttons {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.filter-btn {
    background: none;
    border: 1px solid #ccc;
    color: #00f;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 5px;
    padding: 5px 10px;
    text-decoration: underline;
}

.filter-btn:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.filter-btn.active {
    background-color: #00f;
    color: #fff;
    text-decoration: none;
}

/* Tools list */
.tools-list {
    margin-bottom: 30px;
}

.tool-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tool-item:last-child {
    border-bottom: none;
}

.tool-item h3 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 5px;
    line-height: 1.3;
}

.tags {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.no-tools {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Submission guidelines */
.submission-guidelines {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 25px;
}

.submission-guidelines p {
    margin-bottom: 8px;
    font-weight: bold;
}

.submission-guidelines ul {
    margin: 0;
    padding-left: 20px;
}

.submission-guidelines li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

/* Forms */
.submit-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 8px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: #00f;
}

textarea {
    resize: vertical;
}

small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

button[type="submit"] {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #000;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 16px;
}

button[type="submit"]:hover {
    background-color: #e0e0e0;
}

/* Footer */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 14px;
    text-align: center;
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    .filter-btn {
        margin-right: 5px;
        font-size: 12px;
        padding: 4px 8px;
    }
}
