/* Custom styles beyond Tailwind */
/* Card utilities — clean, minimal */
.neu-outset {
    background-color: var(--bg-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    border-radius: 0.75rem;
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.neu-outset:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
}

.neu-inset {
    background-color: rgba(0,0,0,0.03);
    box-shadow: none;
    border-radius: 0.5rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.dark .neu-outset {
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dark .neu-inset {
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

.neu-pressed:active {
    transform: translateY(1px);
    opacity: 0.9;
}

.masonry {
    column-count: 1;
    column-gap: 1rem;
}

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

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

@media (min-width: 1280px) {
    .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.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background-color: var(--bg-color);
    box-shadow: var(--neu-shadow-inset);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    box-shadow: inset 6px 6px 10px var(--neu-dark), inset -6px -6px 10px var(--neu-light), 0 0 0 2px var(--primary-color);
}

.dark .input-group input {
    background-color: var(--bg-color);
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none !important;
}

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

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

.dark .btn-primary {
    background-color: #f9fafb;
    color: #111827;
}

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

.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 — 960px breakpoint: < 960px = mobile */
@media (max-width: 959px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

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

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

    .member-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-layout {
        grid-template-columns: 1fr;
    }
} 