/* Comments Section - NEW */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.comments-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.comments-count {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-info {
    display: flex;
    gap: 1rem;
}

.comment-form-input {
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-submit {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.comment-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.comment-submit:hover::after {
    transform: translateX(100%);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: comment-appear 0.5s forwards;
}

@keyframes comment-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment:nth-child(1) { animation-delay: 0.1s; }
.comment:nth-child(2) { animation-delay: 0.2s; }
.comment:nth-child(3) { animation-delay: 0.3s; }
.comment:nth-child(4) { animation-delay: 0.4s; }
.comment:nth-child(5) { animation-delay: 0.5s; }

.comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-color);
}

.comment-time {
    font-size: 0.8rem;
    color: #64748b;
}

.comment-text {
    line-height: 1.5;
    color: #334155;
}

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

.comment-action {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: var(--primary-color);
}

.comment-responses {
    margin-top: 1rem;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nested-comment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translateY(10px);
    animation: nested-comment-appear 0.5s forwards;
}

@keyframes nested-comment-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nested-comment:nth-child(1) { animation-delay: 0.6s; }
.nested-comment:nth-child(2) { animation-delay: 0.7s; }

.nested-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.load-more {
    text-align: center;
    margin-top: 1.5rem;
}

.load-more-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Comment animation triggers */
.comment-appear {
    opacity: 0;
    transform: translateY(20px);
    animation: comment-pop 0.5s forwards;
}

@keyframes comment-pop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    70% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pulse-like {
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}