/* Common base styles */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Container layout */
.container {
    margin-top: 60px;
    min-height: calc(100vh - 140px);
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Agent/card grid styling */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.agent-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-5px);
}

.agent-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Agent list styling */
.ai-agent-list {
    list-style: none;
    padding: 0;
}

.ai-agent-item {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-agent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ai-agent-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ai-agent-image {
    flex-shrink: 0;
}

.ai-agent-info {
    flex-grow: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ai-agent-info h2,
.ai-agent-info h4 {
    margin: 0 0 0.75rem 0;
    color: var(--deep-blue);
}

.ai-agent-info h2 a,
.ai-agent-info h4 a {
    text-decoration: none;
    color: inherit;
}

.ai-agent-info h2 a:hover,
.ai-agent-info h4 a:hover {
    color: var(--emerald-green);
}

.ai-agent-summary {
    color: var(--steel-gray);
}

.meta {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* UI components */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.see-all-button, .pagination-link {
    background: #3498db;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.see-all-button:hover, .pagination-link:hover {
    background: #2980b9;
}

/* Error and empty states */
.no-results, .no-agents, .no-comments {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}
