/**
 * Public styles for Matilde Saunders plugin
 */

.matilde-saunders-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.matilde-saunders-info h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.matilde-saunders-info p {
    margin-bottom: 0;
    color: #666;
    line-height: 1.6;
}

.matilde-saunders-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.matilde-saunders-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.matilde-saunders-form p {
    margin-bottom: 15px;
}

.matilde-saunders-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.matilde-saunders-form input[type="text"],
.matilde-saunders-form input[type="email"],
.matilde-saunders-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.matilde-saunders-form input[type="text"]:focus,
.matilde-saunders-form input[type="email"]:focus,
.matilde-saunders-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.matilde-saunders-form input[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.matilde-saunders-form input[type="submit"]:hover {
    background: #005a87;
}

.matilde-saunders-form input[type="submit"]:active {
    background: #004a6e;
}

/* Matilde Item post type styles */
.matilde-item-meta {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.matilde-item-meta h4 {
    margin-top: 0;
    color: #333;
}

.matilde-item-meta p {
    margin-bottom: 10px;
    color: #666;
}

.matilde-item-meta p:last-child {
    margin-bottom: 0;
}

/* Archive styles */
.matilde-items-archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.matilde-item-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.matilde-item-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.matilde-item-card h3 {
    margin-top: 0;
    color: #333;
}

.matilde-item-card .excerpt {
    color: #666;
    line-height: 1.6;
}

.matilde-item-card .read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.matilde-item-card .read-more:hover {
    text-decoration: underline;
}

/* Loading states */
.matilde-saunders-loading {
    opacity: 0.6;
    pointer-events: none;
}

.matilde-saunders-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.matilde-saunders-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 600;
}

.matilde-saunders-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.matilde-saunders-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .matilde-items-archive {
        grid-template-columns: 1fr;
    }
    
    .matilde-saunders-form input[type="text"],
    .matilde-saunders-form input[type="email"],
    .matilde-saunders-form textarea {
        max-width: 100%;
    }
}
