/* Modern Comment Form Styles */
.modern-comment-section {
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
}

.comment-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.comment-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* Social Login Buttons */
.social-login-buttons {
    margin-bottom: 30px;
}

.social-login-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.social-buttons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.facebook-btn {
    background: #1877F2;
}

.facebook-btn:hover {
    background: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.google-btn {
    background: white;
    border: 1px solid #ddd !important;
    color: #444 !important;
}

.line-btn {
    background: #00B900;
}

.line-btn:hover {
    background: #00A000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.4);
}

.social-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.social-divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

/* Social User Info */
.social-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.social-user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
}

.social-user-info span {
    flex: 1;
    font-size: 14px;
}

.social-user-info .logout-social {
    color: white;
    text-decoration: underline;
    font-size: 13px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: background 0.3s;
}

.social-user-info .logout-social:hover {
    background: rgba(255,255,255,0.3);
}

/* Form Fields */
.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.modern-submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modern-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.modern-submit-button:active {
    transform: translateY(0);
}

/* reCAPTCHA Notice */
.recaptcha-notice {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.recaptcha-notice small {
    color: #666;
    font-size: 12px;
}

.recaptcha-notice a {
    color: #667eea;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.comments-list h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.comment-item:hover {
    background: #f9f9f9;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-header strong {
    color: #333;
    font-size: 16px;
}

.comment-date {
    color: #999;
    font-size: 13px;
}

.verified-badge {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.comment-awaiting {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    border-left: 3px solid #ffc107;
}

.comment-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 15px;
}

.comment-actions-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.comment-reply a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-reply a:hover {
    color: #764ba2;
}

/* Like/Dislike Buttons */
.comment-likes {
    display: flex;
    gap: 8px;
    align-items: center;
}

.like-btn,
.dislike-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.like-btn:hover {
    border-color: #4caf50;
    background: #f1f8f4;
    transform: translateY(-2px);
}

.dislike-btn:hover {
    border-color: #f44336;
    background: #fef1f0;
    transform: translateY(-2px);
}

.like-btn.active {
    border-color: #4caf50;
    background: #4caf50;
    color: white;
}

.dislike-btn.active {
    border-color: #f44336;
    background: #f44336;
    color: white;
}

.like-icon,
.dislike-icon {
    font-size: 16px;
}

.like-count,
.dislike-count {
    font-size: 13px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.like-btn.loading,
.dislike-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Children Comments */
.children {
    margin-left: 50px;
    margin-top: 15px;
    list-style: none;
}

/* Replying To Notice */
.replying-to {
    background: #e3f2fd;
    color: #1976d2;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #2196F3;
}

.replying-to .cancel-reply {
    color: #1976d2;
    font-weight: 600;
    text-decoration: none;
}

.replying-to .cancel-reply:hover {
    text-decoration: underline;
}

/* Loading State */
.comment-form-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.comment-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Error Message */
.comment-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.comment-navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.comment-navigation a:hover {
    background: #667eea;
    color: white;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-comment-section {
        padding: 10px;
    }
    
    .comment-form-wrapper,
    .comments-list {
        padding: 20px;
    }
    
    .social-buttons-row {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
    }
    
    .children {
        margin-left: 25px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-item {
        flex-direction: column;
    }
    
    .social-user-info {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .social-login-buttons,
    .comment-form-wrapper,
    .comment-reply {
        display: none;
    }
}