/**
 * The Commons - Additional Styles
 */

.commons-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.commons-main {
    min-width: 0;
}

.create-post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.create-post-card h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.post-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.post-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.village-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.post-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.post-options select {
    padding: 0.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
}

.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card-full {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.post-card-full:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.view-post-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-post-link:hover {
    color: var(--color-accent-light);
}

.commons-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.events-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card-sidebar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.event-date-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    background: var(--color-primary);
    border-radius: 6px;
    padding: 0.5rem;
}

.event-day-small {
    font-size: 1.25rem;
    font-weight: 700;
}

.event-month-small {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-info-small h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.event-info-small p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0.25rem 0;
}

.event-attendees {
    color: var(--color-accent) !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.error, .success {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

@media (max-width: 968px) {
    .commons-layout {
        grid-template-columns: 1fr;
    }
    
    .commons-sidebar {
        order: -1;
    }
}

