/* ==================== ORGANIZATIONS UI v4.0 ==================== */

.orgs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.orgs-modal {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    border: 2px solid #00ff88;
    border-radius: 15px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 255, 136, 0.3);
}

.orgs-header {
    padding: 20px 30px;
    border-bottom: 2px solid #00ff88;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.orgs-header h2 {
    margin: 0;
    color: #00ff88;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.orgs-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

/* Tabs */
.orgs-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #00ff88;
    padding-bottom: 10px;
}

.orgs-tab {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px 5px 0 0;
}

.orgs-tab:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.orgs-tab.active {
    background: #00ff88;
    color: #0f0f1e;
}

.orgs-tab-content {
    min-height: 400px;
}

/* Browse Tab */
.browse-tab {
}

.browse-header {
    margin-bottom: 20px;
}

.browse-header h3 {
    color: #00ff88;
    margin: 0;
}

.browse-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.browse-filters input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    background: #16213e;
    border: 1px solid #00ff88;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
}

.browse-filters select {
    padding: 10px 15px;
    background: #16213e;
    border: 1px solid #00ff88;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.browse-filters input[type="checkbox"] {
    accent-color: #00ff88;
}

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

.org-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    border-color: #00ff88;
}

.org-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.org-logo, .org-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #00ff88;
}

.org-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    font-size: 32px;
}

.org-card-title h4 {
    margin: 0 0 5px 0;
    color: #00ff88;
    font-size: 18px;
}

.org-type {
    color: #aaa;
    font-size: 12px;
}

.org-motto {
    font-style: italic;
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 13px;
}

.org-description {
    color: #ddd;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.org-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #00ff88;
    margin-top: 10px;
}

.org-members {
    color: #aaa;
    font-size: 12px;
}

.org-recruiting {
    color: #00ff88;
    font-size: 11px;
    font-weight: 600;
}

.org-not-recruiting {
    color: #ff4444;
    font-size: 11px;
}

.org-archetype {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 11px;
}

/* Organization Details */
.org-details {
    max-width: 900px;
    margin: 0 auto;
}

.back-btn {
    background: transparent;
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #00ff88;
    color: #0f0f1e;
}

.org-details-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #00ff88;
}

.org-logo-large, .org-logo-large-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid #00ff88;
}

.org-logo-large-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    font-size: 64px;
}

.org-details-header h2 {
    margin: 0 0 10px 0;
    color: #00ff88;
    font-size: 32px;
}

.org-motto-large {
    font-style: italic;
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 16px;
}

.org-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #aaa;
}

.org-meta span {
    background: #16213e;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #00ff88;
}

.org-details-body {
}

.org-section {
    margin-bottom: 30px;
}

.org-section h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 20px;
}

.org-section p {
    color: #ddd;
    line-height: 1.7;
}

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

.org-stat {
    background: #16213e;
    border: 1px solid #00ff88;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.org-stat-label {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 8px;
}

.org-stat-value {
    color: #00ff88;
    font-size: 18px;
    font-weight: 600;
}

.org-link {
    display: inline-block;
    color: #00ff88;
    text-decoration: none;
    margin-right: 20px;
    margin-bottom: 10px;
    padding: 8px 15px;
    border: 1px solid #00ff88;
    border-radius: 5px;
    transition: all 0.2s;
}

.org-link:hover {
    background: #00ff88;
    color: #0f0f1e;
}

.org-actions {
    text-align: center;
    margin-top: 30px;
}

/* Create Tab */
.create-tab {
    max-width: 800px;
    margin: 0 auto;
}

.create-tab h3 {
    color: #00ff88;
    margin-bottom: 20px;
}

.org-form {
}

.form-section {
    background: #16213e;
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h4 {
    color: #00ff88;
    margin: 0 0 20px 0;
    font-size: 18px;
    border-bottom: 1px solid #00ff88;
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    color: #00ff88;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    background: #1a1a2e;
    border: 1px solid #00ff88;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #00ff88;
    width: 18px;
    height: 18px;
}

.form-notice {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-notice strong {
    color: #00ff88;
}

.form-notice ul {
    margin: 10px 0 0 20px;
    color: #ddd;
}

.form-notice li {
    margin-bottom: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6f 100%);
    border: none;
    color: #0f0f1e;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #00ff88;
    color: #00ff88;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .orgs-modal {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .orgs-grid {
        grid-template-columns: 1fr;
    }

    .org-details-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}
