/* Modal Styles copied from team.css and adapted */
.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.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(11, 14, 20, 0.95);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--aurora-violet);
}

.form-group {
    padding: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    padding: 0.8rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--aurora-violet);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Post Tag Styles */
.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--aurora-violet);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

/* Comments Section Styles */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.new-comment-form {
    background: rgba(11, 14, 20, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.new-comment-form .form-group {
    padding: 1rem;
}

.new-comment-form textarea {
    min-height: 80px;
}

#post-comment-btn {
    margin: 0 1rem 1rem 1rem;
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.8);
    color: white;
}
#post-comment-btn:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--aurora-violet);
    color: white;
}

.login-to-comment {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
    text-align: center;
}

.login-to-comment a {
    color: var(--aurora-violet);
    text-decoration: none;
    font-weight: bold;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--aurora-violet);
    padding: 1rem;
    border-radius: 4px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.comment-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.comment-content p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.no-comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#load-more-comments-btn {
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.8);
    color: white;
}

#load-more-comments-btn:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--aurora-violet);
    color: white;
}

/* Inline Edit Styles */
#edit-post-title {
    font-size: 2.5rem;
    width: 100%;
    background: transparent;
    border: 1px solid var(--aurora-violet);
    color: white;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

#edit-tags-container input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    color: white;
}

#edit-tags-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--aurora-violet);
}
