/* Comment System Styles - Figma Design Compliant */
.ptf-comments-section {
    margin-top: 80px;
    padding: 0;
    border-top: none;
}

.ptf-comments-header {
    margin-bottom: 32px;
}

.ptf-comments-header h6 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.33;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.ptf-comments-count {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Comment Form - Figma Design System */
.ptf-comment-form {
    background: #000000;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
    border: 1px solid #374151;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3), 0px 1px 2px rgba(0, 0, 0, 0.2);
}

.ptf-form-group {
    margin-bottom: 24px;
}

.ptf-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: -0.01em;
}

.ptf-form-group input,
.ptf-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1F2937;
    background: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.ptf-form-group input::placeholder,
.ptf-form-group textarea::placeholder {
    color: #9CA3AF;
}

.ptf-form-group input:focus,
.ptf-form-group textarea:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(16, 185, 129, 0.12);
}

.ptf-form-group input:hover:not(:focus),
.ptf-form-group textarea:hover:not(:focus) {
    border-color: #9CA3AF;
}

.ptf-form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

.ptf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ptf-submit-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
    letter-spacing: -0.01em;
}

.ptf-submit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(16, 185, 129, 0.12);
    transform: translateY(-1px);
}

.ptf-submit-btn:active {
    transform: translateY(0px);
}

.ptf-submit-btn:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

/* Comments List - Figma Design System */
.ptf-comments-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ptf-comment {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
}

.ptf-comment:hover {
    border-color: #D1D5DB;
    box-shadow: 0px 4px 6px -1px rgba(16, 24, 40, 0.1), 0px 2px 4px -1px rgba(16, 24, 40, 0.06);
    transform: translateY(-2px);
}

.ptf-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.ptf-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    margin-right: 16px;
    letter-spacing: -0.01em;
    box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
}

.ptf-comment-meta {
    flex: 1;
}

.ptf-comment-author {
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.ptf-comment-date {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.43;
}

.ptf-comment-content {
    color: #374151;
    line-height: 1.6;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
}

.ptf-comment-actions {
    margin-top: 16px;
    display: flex;
    gap: 20px;
}

.ptf-comment-action {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.43;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ptf-comment-action:hover {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.ptf-comment-action.liked {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

/* Empty State - Figma Design System */
.ptf-comments-empty {
    text-align: center;
    padding: 48px 24px;
    background: #F9FAFB;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.ptf-comments-empty h6 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.33;
}

.ptf-comments-empty p {
    margin: 0;
    font-size: 16px;
    color: #6B7280;
    line-height: 1.5;
}

/* Success Message - Figma Design System */
.ptf-comment-success {
    background: #F0FDF4;
    color: #166534;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #BBF7D0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.43;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptf-comment-success::before {
    content: "✓";
    font-weight: 700;
    color: #16A34A;
}

/* Loading State - Figma Design System */
.ptf-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .ptf-comments-section {
        margin-top: 60px;
    }
    
    .ptf-comments-header h6 {
        font-size: 20px;
    }
    
    .ptf-form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .ptf-comment-form {
        padding: 24px;
        border-radius: 12px;
    }
    
    .ptf-comment {
        padding: 20px;
        border-radius: 12px;
    }
    
    .ptf-comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .ptf-comments-empty {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .ptf-comments-section {
        margin-top: 48px;
    }
    
    .ptf-form-group input,
    .ptf-form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .ptf-comment-actions {
        gap: 16px;
    }
    
    .ptf-comment-action {
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* Focus States for Accessibility */
.ptf-submit-btn:focus,
.ptf-comment-action:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .ptf-comment {
        border-width: 2px;
    }
    
    .ptf-form-group input,
    .ptf-form-group textarea {
        border-width: 2px;
    }
}