/**
 * BouwMatch Public Styles
 */

/* Base */
.bouwmatch-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: #333;
}

/* Buttons */
.bouwmatch-container .button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bouwmatch-container .button-primary {
    background: #2271b1;
    color: #fff;
}

.bouwmatch-container .button-primary:hover {
    background: #135e96;
}

.bouwmatch-container .button-secondary {
    background: #f0f0f0;
    color: #333;
}

.bouwmatch-container .button-secondary:hover {
    background: #e0e0e0;
}

/* Upload Area */
.bouwmatch-upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.bouwmatch-dropzone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.bouwmatch-dropzone:hover,
.bouwmatch-dropzone.dragover {
    border-color: #2271b1;
    background: #f0f7fc;
}

.bouwmatch-dropzone .upload-icon {
    color: #999;
    margin-bottom: 20px;
}

.bouwmatch-dropzone h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.bouwmatch-dropzone p {
    margin: 0;
    color: #666;
}

.bouwmatch-dropzone .file-types {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* Upload Progress */
.bouwmatch-upload-progress {
    text-align: center;
    padding: 60px 40px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #4a9fd4);
    width: 0;
    transition: width 0.3s ease;
}

.progress-status {
    color: #666;
    font-size: 14px;
}

/* Upload Result */
.bouwmatch-upload-result {
    text-align: center;
    padding: 60px 40px;
    background: #d1fae5;
    border-radius: 12px;
}

.result-success h3 {
    color: #065f46;
    margin: 0 0 15px;
    font-size: 20px;
}

.result-success .result-message {
    color: #047857;
    margin-bottom: 25px;
}

.result-success .button {
    margin: 0 8px;
}

/* Dashboard */
.bouwmatch-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 24px;
}

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

.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background: #f3f4f6;
    color: #374151;
}

.status-open {
    background: #d1fae5;
    color: #065f46;
}

.status-matching {
    background: #fef3c7;
    color: #92400e;
}

.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.status-awarded {
    background: #dbeafe;
    color: #1e40af;
}

/* Project Meta */
.project-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.meta-item {
    display: block;
    margin-bottom: 6px;
}

.meta-item strong {
    color: #333;
}

/* Project Footer */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.matches-count {
    font-size: 13px;
    color: #2271b1;
    font-weight: 600;
}

.view-project {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-project:hover {
    text-decoration: underline;
}

/* No Projects */
.no-projects {
    text-align: center;
    padding: 80px 40px;
    background: #f9fafb;
    border-radius: 12px;
}

.no-projects p {
    color: #6b7280;
    font-size: 16px;
}

/* Profile Form */
.bouwmatch-profile-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bouwmatch-profile-form h2 {
    margin: 30px 0 20px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 18px;
    color: #333;
}

.bouwmatch-profile-form h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}

.save-status {
    margin-left: 20px;
    font-size: 14px;
}

/* Matches Modal */
.bouwmatch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.matches-modal {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.matches-modal h3 {
    margin: 0 0 20px;
}

.matches-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.matches-modal li {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.matches-modal li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
