/* Custom styles beyond Tailwind */
.masonry {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .masonry {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .masonry {
        column-count: 4;
    }
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark\:bg-gray-900 {
        background-color: rgb(17, 24, 39);
    }
    .dark\:text-white {
        color: rgb(255, 255, 255);
    }
}

/* Community Pages */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 0.5rem;
    position: relative;
}

.dark .modal-content {
    background-color: #1f2937;
    border-color: #374151;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.dark .close:hover,
.dark .close:focus {
    color: white;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: white;
}

.dark .input-group input {
    background-color: #374151;
    border-color: #4b5563;
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.dark .btn-primary {
    background-color: #6366f1;
}

.dark .btn-primary:hover {
    background-color: #4f46e5;
}

.btn-secondary {
    background-color: #10b981;
    color: white;
}

.btn-secondary:hover {
    background-color: #059669;
}

.dark .btn-secondary {
    background-color: #34d399;
}

.dark .btn-secondary:hover {
    background-color: #10b981;
}

/* Community Feed */
.feed-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.dark .feed-item {
    border-color: #374151;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feed-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
}

.feed-meta {
    flex: 1;
}

.feed-author {
    font-weight: 500;
    color: #111827;
}

.dark .feed-author {
    color: white;
}

.feed-timestamp {
    font-size: 0.875rem;
    color: #6b7280;
}

.feed-content {
    color: #374151;
    margin-bottom: 1rem;
}

.dark .feed-content {
    color: #d1d5db;
}

.feed-actions {
    display: flex;
    gap: 1rem;
}

.feed-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    transition: color 0.2s;
}

.feed-action:hover {
    color: #4f46e5;
}

.dark .feed-action:hover {
    color: #6366f1;
}

/* Comments */
.comment {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.dark .comment {
    background-color: #1f2937;
}

.comment-form {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.comment-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: white;
}

.dark .comment-input {
    background-color: #374151;
    border-color: #4b5563;
    color: white;
}

/* Member List */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.member-item:hover {
    background-color: #f9fafb;
}

.dark .member-item:hover {
    background-color: #374151;
}

.member-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 500;
    color: #111827;
}

.dark .member-name {
    color: white;
}

.member-role {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Events */
.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.dark .event-item {
    background-color: #1f2937;
}

.event-date {
    text-align: center;
    min-width: 3rem;
}

.event-day {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4f46e5;
}

.dark .event-day {
    color: #6366f1;
}

.event-month {
    font-size: 0.875rem;
    color: #6b7280;
}

.event-info {
    flex: 1;
}

.event-title {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.dark .event-title {
    color: white;
}

.event-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.event-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    background-color: #f3f4f6;
    border-radius: 9999px;
}

.dark .event-time {
    background-color: #374151;
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .input-group {
        flex-direction: column;
    }

    .feed-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .member-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .community-layout {
        grid-template-columns: 1fr;
    }
} 