/**
 * EUknow Projects - Public Styles
 */

/* Container */
.euknow-projects-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters */
.euknow-filters {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.euknow-filters h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Buttons */
.euknow-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.euknow-btn-primary {
    background: #0073aa;
    color: white;
}

.euknow-btn-primary:hover {
    background: #005a87;
}

.euknow-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.euknow-btn-secondary:hover {
    background: #e0e0e0;
}

.euknow-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.euknow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Info */
.euknow-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.euknow-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.euknow-sort label {
    font-size: 13px;
    font-weight: 600;
}

.euknow-sort select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* Loading */
#euknow-loading {
    text-align: center;
    padding: 40px;
}

.euknow-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Projects Grid */
.euknow-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Project Card */
.euknow-project-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.project-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #222;
    line-height: 1.4;
}

.project-acronym {
    display: inline-block;
    background: #e8f4f8;
    color: #0073aa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.project-meta {
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}

.meta-label {
    font-weight: 600;
    color: #666;
}

.meta-value {
    color: #333;
    text-align: right;
}

.meta-value code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.meta-cost {
    font-weight: 700;
    color: #0073aa;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ongoing,
.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed,
.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-signed {
    background: #fff3cd;
    color: #856404;
}

.project-objective {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.project-objective strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.project-objective p {
    margin: 0;
}

.project-topics {
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.project-topics strong {
    color: #333;
}

.project-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Pagination */
.euknow-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.page-info {
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .euknow-projects-grid {
        grid-template-columns: 1fr;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .euknow-results-info {
        flex-direction: column;
        gap: 15px;
    }
}
