/**
 * Organization Pages Styles
 * Styles for organization-related pages
 */

.orgs-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.orgs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.orgs-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.orgs-header p {
    font-size: 1.125rem;
    color: var(--muted);
}

.orgs-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.org-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

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

.org-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.org-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.org-role {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.org-description {
    margin-bottom: 1rem;
}

.org-description p {
    margin: 0;
    color: var(--muted);
}

.org-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.org-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Organization management page */
.org-manage {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.org-manage .org-header {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: flex-start;
}

.org-manage .org-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.org-manage .org-meta {
    width: 100%;
    justify-content: flex-start;
    gap: 2rem;
}

.org-nav {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.nav-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border-right: 1px solid var(--border);
    transition: all 0.2s ease;
}

.nav-tab:last-child {
    border-right: none;
}

.nav-tab:hover,
.nav-tab.active {
    background: var(--primary);
    color: white;
}

.org-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.org-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.members-list {
    display: grid;
    gap: 1rem;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.member-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.member-info p {
    margin: 0 0 0.5rem 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.member-role {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.role-admin {
    background: var(--primary);
    color: white;
}

.role-member {
    background: var(--secondary);
    color: var(--text);
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

.invite-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.invite-section h3 {
    margin-bottom: 1rem;
}

.invite-section code {
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid var(--border);
}

.invite-section .btn {
    margin-left: 1rem;
}

/* Organization create/join pages */
.org-create,
.org-join {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.org-create h1,
.org-join h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.org-create > p,
.org-join > p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 2rem;
}

.form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pending-requests {
    margin-top: 2rem;
}

.requests-list {
    display: grid;
    gap: 1rem;
}

.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.request-info h4 {
    margin: 0 0 0.25rem 0;
}

.request-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending {
    background: var(--warning);
    color: white;
}

.request-actions {
    display: flex;
    gap: 0.5rem;
}

/* Guide page styles */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.guide-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.guide-section h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.guide-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.guide-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .orgs-grid {
        grid-template-columns: 1fr;
    }

    .org-card {
        padding: 1rem;
    }

    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .guide-features {
        grid-template-columns: 1fr;
    }

    .guide-actions {
        justify-content: center;
    }
}