/* COMMENTS STYLING & ENHANCEMENTS */

/* Comment Container */
.comments-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Warning Section */
.warning-section {
    margin-bottom: 40px;
}

.warning-card {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.warning-title {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.warning-text {
    opacity: 0.9;
    line-height: 1.6;
    font-size: 1rem;
}

/* Comment Form */
.form-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #e94560;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ffffff;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Comments List */
.comments-list {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #e94560;
}

/* Comment Items */
.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out both;
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-author {
    font-weight: bold;
    color: #e94560;
    font-size: 1.1rem;
}

.comment-time {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #ffffff;
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ffffff;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

/* Like Button */
.comment-like-btn {
    background: linear-gradient(135deg, #e94560, #533483);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.comment-like-btn:active {
    transform: translateY(0);
}

/* Permanent Comment Badge */
.comment-permanent {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    opacity: 0.9;
    display: none; /* Hidden by default */
}

/* Universal Comment System */
.universal-comments {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.universal-comments-header {
    text-align: center;
    margin-bottom: 30px;
}

.universal-comments-title {
    font-size: 1.8rem;
    color: #e94560;
    margin-bottom: 10px;
}

.universal-comments-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-container {
        padding: 15px;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .comment-item {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-actions {
        justify-content: center;
    }
}

/* Animation Enhancements */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.comment-like-btn.liked {
    animation: heartBeat 0.6s ease-out;
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Loading State */
.comment-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #ffffff;
    opacity: 0.7;
}

.comment-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e94560;
    font-size: 0.9rem;
    margin-top: 10px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #e94560;
    border-radius: 50%;
    animation: typingPulse 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

/* Enhanced Button Styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* Success Message */
.comment-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    color: #28a745;
    animation: fadeIn 0.5s ease-out;
}

/* Error Message */
.comment-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    color: #dc3545;
    animation: shake 0.5s ease-out;
}
