/**
 * Collaboration System Styles
 * Premium Retro 3D Theme - Matching Asset Request Design
 */

/* --- Premium Retro 3D Theme Variables --- */
:root {
    --retro-green: #2ecc71;
    --retro-dark-green: #27ae60;
    --retro-black: #1a1a1a;
    --retro-white: #ffffff;
    --retro-gray: #f4f4f4;
    --retro-border-color: #1a1a1a;
    --retro-text: #1a1a1a;
    --retro-shadow-color: #1a1a1a;

    --retro-border: 3px solid var(--retro-border-color);
    --retro-shadow: 4px 4px 0px var(--retro-shadow-color);
    --retro-shadow-hover: 2px 2px 0px var(--retro-shadow-color);
    --retro-font: 'Inter', sans-serif;
    --retro-radius: 8px;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Main Container */
.collaboration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: var(--retro-font);
    color: var(--retro-text);
    background: #ffffff;
    min-height: 100vh;
}

/* Header */
.collaboration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.collaboration-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: var(--retro-text);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.header-description {
    margin-top: 10px;
    color: #666;
    font-size: 16px;
}

.btn-new-collab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--retro-green);
    color: var(--retro-white);
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);
    border-radius: var(--retro-radius);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: var(--retro-font);
}

.btn-new-collab:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--retro-shadow-hover);
    background: var(--retro-dark-green);
}

.plus-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Stats */
.collab-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--retro-white);
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);
    padding: 20px;
    border-radius: var(--retro-radius);
    text-align: center;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px var(--retro-shadow-color);
}

.stat-item.open {
    border-left: 6px solid #2196F3;
}

.stat-item.in-progress {
    border-left: 6px solid #FF9800;
}

.stat-item.completed {
    border-left: 6px solid var(--retro-green);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--retro-text);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Collaborations List */
.collaborations-list {
    display: grid;
    gap: 20px;
}

.collab-item {
    background: var(--retro-white);
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);
    border-radius: var(--retro-radius);
    padding: 25px;
    transition: all 0.3s;
    position: relative;
}

.collab-item:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px var(--retro-shadow-color);
}

.collab-item.status-open {
    border-left: 6px solid #2196F3;
}

.collab-item.status-in_progress {
    border-left: 6px solid #FF9800;
}

.collab-item.status-completed {
    border-left: 6px solid var(--retro-green);
    opacity: 0.8;
}

.collab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.collab-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--retro-text);
    flex: 1;
}

.collab-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.collab-status.status-open {
    background: #E3F2FD;
    color: #1976D2;
}

.collab-status.status-in_progress {
    background: #FFF3E0;
    color: #F57C00;
}

.collab-status.status-completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.collab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    font-size: 16px;
}

.collab-description {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.collab-skills {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--retro-gray);
    border-radius: var(--retro-radius);
    font-size: 14px;
}

.collab-skills strong {
    color: var(--retro-text);
}

.collab-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.collab-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.collab-badge.owner {
    background: var(--retro-green);
    color: var(--retro-white);
}

.collab-badge.member {
    background: #2196F3;
    color: var(--retro-white);
}

.collab-badge.applied {
    background: #FF9800;
    color: var(--retro-white);
}

.collab-badge.applicants {
    background: #E3F2FD;
    color: #1976D2;
}

.btn-apply-collab {
    padding: 10px 20px;
    background: var(--retro-green);
    color: var(--retro-white);
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);
    border-radius: var(--retro-radius);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--retro-font);
}

.btn-apply-collab:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--retro-shadow-hover);
    background: var(--retro-dark-green);
}

/* No Collaborations */
.no-collabs {
    text-align: center;
    padding: 60px 20px;
    background: var(--retro-gray);
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);
    border-radius: var(--retro-radius);
}

.no-collabs-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-collabs p {
    color: #999;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Popup Styles */
.collab-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.collab-popup-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.collab-popup {
    background: var(--retro-white);
    border: var(--retro-border);
    box-shadow: 8px 8px 0px var(--retro-shadow-color);
    border-radius: var(--retro-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: var(--retro-border);
}

.popup-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--retro-text);
    text-transform: uppercase;
}

.popup-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.popup-close:hover {
    color: var(--retro-text);
}

.popup-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--retro-text);
    text-transform: uppercase;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: var(--retro-border);
    border-radius: var(--retro-radius);
    font-size: 16px;
    font-family: var(--retro-font);
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--retro-green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel, .btn-submit {
    padding: 12px 25px;
    border: var(--retro-border);
    border-radius: var(--retro-radius);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--retro-font);
}

.btn-cancel {
    background: var(--retro-white);
    color: var(--retro-text);
    box-shadow: var(--retro-shadow);
}

.btn-cancel:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--retro-shadow-hover);
}

.btn-submit {
    background: var(--retro-green);
    color: var(--retro-white);
    box-shadow: var(--retro-shadow);
}

.btn-submit:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--retro-shadow-hover);
    background: var(--retro-dark-green);
}

/* Notification */
.collab-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border: var(--retro-border);
    box-shadow: var(--retro-shadow);
    border-radius: var(--retro-radius);
    font-weight: 700;
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
}

.collab-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.collab-notification.success {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #2E7D32;
}

.collab-notification.error {
    background: #FFEBEE;
    color: #C62828;
    border-color: #C62828;
}

/* Responsive */
@media (max-width: 768px) {
    .collaboration-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-new-collab {
        width: 100%;
        justify-content: center;
    }
    
    .collab-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .collab-popup {
        width: 95%;
        margin: 20px;
    }
}

