/* Common styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.header-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container h1 {
    margin-bottom: 1rem;
    color: #333;
}

.header-container p {
    margin-bottom: 1.5rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.submit-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #f0f7ff;
    color: #0066cc;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #0066cc;
    transition: all 0.3s ease;
    font-weight: 500;
}

.submit-button:hover {
    background: #0066cc;
    color: white;
}

.submit-button::before {
    content: "+";
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Filter styles */
.filters-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #4a5568;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    color: #2d3748;
    font-size: 0.95em;
    cursor: pointer;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.clear-filters {
    padding: 8px 16px;
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clear-filters:hover {
    background-color: #cbd5e0;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tag {
    background-color: #ebf8ff;
    color: #2b6cb0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    color: #4a5568;
    font-size: 1.1em;
}

/* Main page styles */
#ai-tools-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tool-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.tool-item:hover {
    transform: translateY(-2px);
}

.tool-name {
    color: #2c5282;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-decoration: none;
}

.tool-name:hover {
    text-decoration: underline;
}

.tool-description {
    color: #4a5568;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tool-category {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 10px;
}

.tool-link {
    display: inline-block;
    background-color: #4299e1;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
    text-align: center;
}

.tool-link:hover {
    background-color: #3182ce;
}

/* Tool details page styles */
.container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #4299e1;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h2 {
    color: #2d3748;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.info-section p {
    color: #4a5568;
    margin: 0;
}

/* Common utility styles */
#loading {
    text-align: center;
    padding: 20px;
    color: #4a5568;
}

#error {
    background-color: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    display: none;
}

.refresh-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #48bb78;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.refresh-button:hover {
    background-color: #38a169;
} 