/* StrongBody AI Integration Frontend Styles */
/* Version: 1.1.0 */

.strongbody-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.strongbody-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.strongbody-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.strongbody-grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.strongbody-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.strongbody-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.strongbody-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.strongbody-card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.strongbody-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.strongbody-card-content {
    color: #555;
    line-height: 1.6;
}

.strongbody-flag {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.strongbody-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strongbody-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.strongbody-search-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.strongbody-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.strongbody-search-input:focus {
    outline: none;
    border-color: #007cba;
}

.strongbody-search-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.strongbody-search-button:hover {
    background: #005a87;
}

.strongbody-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.strongbody-stat-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.strongbody-stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.strongbody-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.strongbody-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.strongbody-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: strongbody-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes strongbody-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.strongbody-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.strongbody-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
}

.strongbody-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .strongbody-grid-3,
    .strongbody-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .strongbody-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .strongbody-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .strongbody-grid-2,
    .strongbody-grid-3,
    .strongbody-grid-4 {
        grid-template-columns: 1fr;
    }

    .strongbody-stats {
        grid-template-columns: 1fr;
    }

    .strongbody-card-title {
        font-size: 16px;
    }
}
